@@ -12,22 +12,22 @@ jobs:
1212 pre-commit :
1313 runs-on : ubuntu-latest
1414 steps :
15- - uses : actions/checkout@v2
16- - name : Set up Python 3.9
17- uses : actions/setup-python@v1
15+ - uses : actions/checkout@v4
16+ - name : Set up Python 3.11
17+ uses : actions/setup-python@v4
1818 with :
19- python-version : 3.9
20- - uses : pre-commit/action@v2 .0.0
19+ python-version : " 3.11 "
20+ - uses : pre-commit/action@v3 .0.1
2121
2222 tests :
2323 runs-on : ubuntu-latest
2424 strategy :
2525 matrix :
26- python-version : [3.8, 3.9 ]
26+ python-version : ["3.9", "3.10", "3.11", "3.12" ]
2727 steps :
28- - uses : actions/checkout@v2
28+ - uses : actions/checkout@v4
2929 - name : Set up Python ${{ matrix.python-version }}
30- uses : actions/setup-python@v1
30+ uses : actions/setup-python@v4
3131 with :
3232 python-version : ${{ matrix.python-version }}
3333 - name : Install dependencies
@@ -36,14 +36,14 @@ jobs:
3636 pip install -e.[testing]
3737 - name : Run pytest
3838 run : |
39- pytest --duration =10 --cov=sphinx_exercise --cov-report=xml --cov-report=term-missing
39+ pytest --durations =10 --cov=sphinx_exercise --cov-report=xml --cov-report=term-missing
4040 - name : Create cov
4141 run : coverage xml
4242 - name : Upload to Codecov
43- if : matrix.python-version == 3.8
44- uses : codecov/codecov-action@v1
43+ if : matrix.python-version == '3.11'
44+ uses : codecov/codecov-action@v4
4545 with :
46- name : sphinx-exercise-pytest-py3.8
46+ name : sphinx-exercise-pytest-py3.11
4747 flags : pytests
4848 file : ./coverage.xml
4949 fail_ci_if_error : true
@@ -52,11 +52,11 @@ jobs:
5252 name : Documentation build
5353 runs-on : ubuntu-latest
5454 steps :
55- - uses : actions/checkout@v2
56- - name : Set up Python 3.9
57- uses : actions/setup-python@v1
55+ - uses : actions/checkout@v4
56+ - name : Set up Python 3.11
57+ uses : actions/setup-python@v4
5858 with :
59- python-version : 3.9
59+ python-version : " 3.11 "
6060 - name : Install dependencies
6161 run : |
6262 python -m pip install --upgrade pip
@@ -74,15 +74,15 @@ jobs:
7474 runs-on : ubuntu-latest
7575 steps :
7676 - name : Checkout source
77- uses : actions/checkout@v2
78- - name : Set up Python 3.9
79- uses : actions/setup-python@v1
77+ uses : actions/checkout@v4
78+ - name : Set up Python 3.11
79+ uses : actions/setup-python@v4
8080 with :
81- python-version : 3.9
81+ python-version : " 3.11 "
8282 - name : Build package
8383 run : |
84- pip install wheel
85- python setup.py bdist_wheel sdist
84+ pip install wheel build
85+ python -m build
8686 - name : Publish
87878888 with :
0 commit comments