Skip to content

Commit fdd299e

Browse files
committed
fixup! Use nox instead of tox
1 parent f3d3a7c commit fdd299e

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

.github/workflows/main.yaml

+5-14
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
15+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1616
architecture: ["x64"]
1717
steps:
1818
- uses: actions/checkout@v2
@@ -21,16 +21,7 @@ jobs:
2121
with:
2222
python-version: ${{ matrix.python-version }}
2323
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 }}-
3224
- name: Cache pip
33-
if: matrix.python-version != 3.8
3425
env:
3526
PYO3_USE_ABI3_FORWARD_COMPATIBILITY: "1"
3627
uses: actions/cache@v4
@@ -46,17 +37,17 @@ jobs:
4637
if: matrix.python-version == 3.12
4738
run: |
4839
# 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
40+
nox -e flake8 -- deepdiff --count --select=E9,F63,F7,F82 --show-source --statistics
5041
# 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
42+
nox -e flake8 -- deepdiff --count --exit-zero --max-complexity=26 --max-line-length=250 --statistics
5243
- name: Test with pytest and get the coverage
5344
if: matrix.python-version == 3.12
5445
run: |
55-
tox -s -- --benchmark-disable --cov-report=xml --cov=deepdiff tests/ --runslow
46+
nox -s -- --benchmark-disable --cov-report=xml --cov=deepdiff tests/ --runslow
5647
- name: Test with pytest and no coverage report
5748
if: matrix.python-version != 3.12
5849
run: |
59-
tox -s -- --benchmark-disable tests/
50+
nox -s -- --benchmark-disable tests/
6051
- name: Upload coverage to Codecov
6152
uses: codecov/codecov-action@v4
6253
if: matrix.python-version == 3.12

0 commit comments

Comments
 (0)