@@ -25,39 +25,28 @@ jobs:
25
25
cache : pip
26
26
cache-dependency-path : pyproject.toml
27
27
28
- - name : Install nox
29
- run : pip install nox
30
- - name : Upgrade setuptools & wheel (for all venvs)
31
- run : pip install --upgrade setuptools wheel
32
-
33
28
- name : Lint with flake8
34
- if : ${{ matrix.python-version == env.DEFAULT_PYTHON }}
29
+ if : ${{ matrix.python-version == '3.12' }}
30
+ run : |
31
+ nox -s flake8 -- deepdiff --count --select=E9,F63,F7,F82 --show-source --statistics
32
+ nox -s flake8 -- deepdiff --count --exit-zero --max-complexity=26 --max-line-length=250 --statistics
33
+
34
+ - name : Test with pytest (no coverage)
35
+ if : ${{ matrix.python-version != '3.12' }}
35
36
run : |
36
- nox -e flake8 -- \
37
- deepdiff \
38
- --count --select=E9,F63,F7,F82 \
39
- --show-source --statistics
40
- nox -e flake8 -- \
41
- deepdiff \
42
- --count --exit-zero \
43
- --max-complexity=26 --max-line-length=250 \
44
- --statistics
37
+ nox -s pytest-${{ matrix.python-version }} -- --benchmark-disable tests/
45
38
46
- - name : Test with pytest (coverage)
47
- if : ${{ matrix.python-version == env.DEFAULT_PYTHON }}
39
+ - name : Test with pytest (+ coverage)
40
+ if : ${{ matrix.python-version == '3.12' }}
48
41
run : |
49
- nox -e pytest -- \
42
+ nox -s pytest-${{ matrix.python-version }} -- \
50
43
--benchmark-disable \
51
44
--cov-report=xml \
52
45
--cov=deepdiff \
53
46
tests/ --runslow
54
47
55
- - name : Test with pytest (no coverage)
56
- if : ${{ matrix.python-version != env.DEFAULT_PYTHON }}
57
- run : nox -e pytest -- --benchmark-disable tests/
58
-
59
48
- name : Upload coverage
60
- if : ${{ matrix.python-version == env.DEFAULT_PYTHON }}
49
+ if : ${{ matrix.python-version == '3.12' }}
61
50
uses : codecov/codecov-action@v4
62
51
with :
63
52
token : ${{ secrets.CODECOV_TOKEN }}
0 commit comments