Skip to content

Commit 11b7590

Browse files
committed
testing for coverage
1 parent 306521c commit 11b7590

File tree

1 file changed

+12
-23
lines changed

1 file changed

+12
-23
lines changed

.github/workflows/main.yaml

+12-23
Original file line numberDiff line numberDiff line change
@@ -25,39 +25,28 @@ jobs:
2525
cache: pip
2626
cache-dependency-path: pyproject.toml
2727

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-
3328
- 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' }}
3536
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/
4538
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' }}
4841
run: |
49-
nox -e pytest -- \
42+
nox -s pytest-${{ matrix.python-version }} -- \
5043
--benchmark-disable \
5144
--cov-report=xml \
5245
--cov=deepdiff \
5346
tests/ --runslow
5447
55-
- name: Test with pytest (no coverage)
56-
if: ${{ matrix.python-version != env.DEFAULT_PYTHON }}
57-
run: nox -e pytest -- --benchmark-disable tests/
58-
5948
- name: Upload coverage
60-
if: ${{ matrix.python-version == env.DEFAULT_PYTHON }}
49+
if: ${{ matrix.python-version == '3.12' }}
6150
uses: codecov/codecov-action@v4
6251
with:
6352
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)