1212
1313jobs :
1414
15- pre-commit :
16-
17- runs-on : ubuntu-latest
18-
19- steps :
20- - uses : actions/checkout@v2
21- - name : Set up Python 3.8
22- uses : actions/setup-python@v2
23- with :
24- python-version : 3.8
25- - uses : pre-commit/action@v2.0.0
26-
2715 tests :
2816
2917 strategy :
3018 fail-fast : false
3119 matrix :
3220 os : [ubuntu-latest]
33- python-version : [3.7, 3.8, 3.9 , "3.10 "]
21+ python-version : ["3.9", "3.10", "3.11" , "3.12 "]
3422 include :
3523 - os : windows-latest
36- python-version : 3.8
24+ python-version : 3.9
3725
3826 runs-on : ${{ matrix.os }}
3927
4028 steps :
41- - uses : actions/checkout@v2
29+ - uses : actions/checkout@v3
4230 - name : Set up Python ${{ matrix.python-version }}
43- uses : actions/setup-python@v2
31+ uses : actions/setup-python@v4
4432 with :
4533 python-version : ${{ matrix.python-version }}
4634 - name : Install dependencies
@@ -51,27 +39,27 @@ jobs:
5139 run : |
5240 pytest --cov=sphinx_external_toc --cov-report=xml --cov-report=term-missing
5341 - name : Upload to Codecov
54- if : matrix.python-version == 3.8
55- uses : codecov/codecov-action@v1
42+ if : matrix.python-version == 3.11
43+ uses : codecov/codecov-action@v3
5644 with :
57- name : pytests-py3.8
45+ name : pytests-py3.11
5846 flags : pytests
5947 file : ./coverage.xml
6048 fail_ci_if_error : true
6149
6250 publish :
6351
64- name : Publish to PyPi
65- needs : [pre-commit, tests]
52+ name : Publish to PyPI
53+ needs : [tests]
6654 if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
6755 runs-on : ubuntu-latest
6856 steps :
6957 - name : Checkout source
70- uses : actions/checkout@v2
58+ uses : actions/checkout@v3
7159 - name : Set up Python
72- uses : actions/setup-python@v2
60+ uses : actions/setup-python@v4
7361 with :
74- python-version : 3.8
62+ python-version : 3.11
7563 - name : install flit
7664 run : |
7765 pip install flit~=3.4
0 commit comments