File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : tests
2+
3+ on :
4+ pull_request :
5+ types :
6+ - opened
7+ - synchronize
8+ - reopened
9+ - ready_for_review
10+ push :
11+ branches :
12+ - main
13+ workflow_dispatch :
14+
15+ permissions : {}
16+
17+ concurrency :
18+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
19+ cancel-in-progress : true
20+
21+ jobs :
22+ test :
23+ strategy :
24+ fail-fast : false
25+ matrix :
26+ runs-on : ["ubuntu-latest"]
27+ python-version :
28+ - " 3.11"
29+ - " 3.12"
30+ - " 3.13"
31+ coverage : [false]
32+ name : run tests (Python ${{ matrix.python-version }}, ${{ matrix.runs-on }})
33+ runs-on : ${{ matrix.runs-on }}
34+ steps :
35+ - uses : actions/checkout@v6
36+ with :
37+ persist-credentials : false
38+ - uses : actions/setup-python@v6
39+ with :
40+ python-version : ${{ matrix.python-version }}
41+ - run : pip install ".[test]" ${{ matrix.coverage && 'coverage pytest-cov' || '' }}
42+ - run : pytest ${{ matrix.coverage && '--cov' || '' }}
43+ - if : matrix.coverage
44+ name : report coverage to summary
45+ run : |
46+ coverage combine
47+ echo '## Coverage Report' >> $GITHUB_STEP_SUMMARY
48+ coverage report -i -m --format=markdown | tee -a $GITHUB_STEP_SUMMARY
You can’t perform that action at this time.
0 commit comments