@@ -11,11 +11,11 @@ jobs:
1111 name : Run tox on ${{ matrix.python-version }}
1212 runs-on : ubuntu-latest
1313 env :
14- USING_COVERAGE : ' 3.7,3.8,3.9,3.10,3.11 '
14+ USING_COVERAGE : ' 3.12 '
1515
1616 strategy :
1717 matrix :
18- python-version : [ "3.7 ", "3.8 ", "3.9 ", "3.10 ", "3.11 " ]
18+ python-version : [ "3.8 ", "3.9 ", "3.10 ", "3.11 ", "3.12 " ]
1919
2020 steps :
2121 - uses : actions/checkout@v3
3232 - name : Run tox targets for ${{ matrix.python-version }}
3333 run : python -m tox
3434
35- - name : Upload coverage data
36- uses : actions/upload-artifact@v3
37- with :
38- name : coverage-data
39- path : .coverage.*
40- if-no-files-found : ignore
41-
42- coverage :
43- name : Combine & check coverage.
44- runs-on : ubuntu-latest
45- needs : tests
46-
47- steps :
48- - uses : actions/checkout@v3
49-
50- - uses : actions/setup-python@v4
51- with :
52- python-version : ${{env.PYTHON_LATEST}}
53-
54- - run : python -m pip install --upgrade coverage[toml]
55-
56- - uses : actions/download-artifact@v3
57- with :
58- name : coverage-data
59-
60- - name : Combine coverage & fail if it's <100%.
61- run : |
62- python -m coverage combine
63- python -m coverage html --skip-covered --skip-empty
64- # Report and write to summary.
65- python -m coverage report | sed 's/^/ /' >> $GITHUB_STEP_SUMMARY
66-
67- - name : Upload HTML report if check failed.
68- uses : actions/upload-artifact@v3
69- with :
70- name : html-report
71- path : htmlcov
72- if : ${{ failure() }}
73-
74- - name : Upload coverage to Codecov
75- uses : codecov/codecov-action@v2
76- with :
77- fail_ci_if_error : true
78-
7935 docs :
8036 name : Build docs & run doctests
8137 runs-on : ubuntu-latest
0 commit comments