88
99jobs :
1010 build :
11-
11+ env :
12+ DEFAULT_PYTHON : 3.12
1213 runs-on : ubuntu-latest
1314 strategy :
1415 matrix :
15- python-version : ["3.8 ", "3.9 ", "3.10 ", "3.11 ", "3.12 "]
16+ python-version : ["3.9 ", "3.10 ", "3.11 ", "3.12 ", "3.13 "]
1617 architecture : ["x64"]
1718 steps :
1819 - uses : actions/checkout@v2
2122 with :
2223 python-version : ${{ matrix.python-version }}
2324 architecture : ${{ matrix.architecture }}
24- - name : Cache pip 3.8
25- if : matrix.python-version == 3.8
26- uses : actions/cache@v4
27- with :
28- # This path is specific to Ubuntu
29- path : ~/.cache/pip
30- restore-keys : |
31- ${{ runner.os }}-
3225 - name : Cache pip
33- if : matrix.python-version != 3.8
3426 env :
3527 PYO3_USE_ABI3_FORWARD_COMPATIBILITY : " 1"
3628 uses : actions/cache@v4
@@ -43,23 +35,23 @@ jobs:
4335 # workaround for 3.12, SEE: https://github.com/pypa/setuptools/issues/3661#issuecomment-1813845177
4436 pip install --upgrade setuptools
4537 - name : Lint with flake8
46- if : matrix.python-version == 3.12
38+ if : matrix.python-version == ${{ env.DEFAULT_PYTHON }}
4739 run : |
4840 # stop the build if there are Python syntax errors or undefined names
49- tox -e flake8 -- deepdiff --count --select=E9,F63,F7,F82 --show-source --statistics
41+ nox -e flake8 -- deepdiff --count --select=E9,F63,F7,F82 --show-source --statistics
5042 # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
51- tox -e flake8 -- deepdiff --count --exit-zero --max-complexity=26 --max-line-lengt =250 --statistics
43+ nox -e flake8 -- deepdiff --count --exit-zero --max-complexity=26 --max-line-length =250 --statistics
5244 - name : Test with pytest and get the coverage
53- if : matrix.python-version == 3.12
45+ if : matrix.python-version == ${{ env.DEFAULT_PYTHON }}
5446 run : |
55- tox -s -- --benchmark-disable --cov-report=xml --cov=deepdiff tests/ --runslow
47+ nox -e pytest -s -- --benchmark-disable --cov-report=xml --cov=deepdiff tests/ --runslow
5648 - name : Test with pytest and no coverage report
57- if : matrix.python-version != 3.12
49+ if : matrix.python-version != ${{ env.DEFAULT_PYTHON }}
5850 run : |
59- tox -s -- --benchmark-disable tests/
51+ nox -e pytest -s -- --benchmark-disable tests/
6052 - name : Upload coverage to Codecov
6153 uses : codecov/codecov-action@v4
62- if : matrix.python-version == 3.12
54+ if : matrix.python-version == ${{ env.DEFAULT_PYTHON }}
6355 env :
6456 CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
6557 with :
0 commit comments