Skip to content

Commit d78f8df

Browse files
committed
coverage only when testing with py3.10
1 parent db04c79 commit d78f8df

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/main.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,20 @@ jobs:
3838
if: matrix.python-version != 3.7
3939
run: pip install -r requirements-dev.txt
4040
- name: Lint with flake8
41+
if: matrix.python-version == 3.10
4142
run: |
4243
# stop the build if there are Python syntax errors or undefined names
4344
flake8 deepdiff --count --select=E9,F63,F7,F82 --show-source --statistics
4445
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
4546
flake8 deepdiff --count --exit-zero --max-complexity=26 --max-line-lengt=250 --statistics
46-
- name: Test with pytest
47+
- name: Test with pytest and get the coverage
48+
if: matrix.python-version == 3.10
49+
run: |
50+
pytest --cov-report=xml --cov=deepdiff tests/ --runslow
51+
- name: Test with pytest and no coverage report
52+
if: matrix.python-version != 3.10
4753
run: |
48-
pytest --cov-report=xml --cov=deepdiff tests/ --runslow
54+
pytest
4955
- name: Upload coverage to Codecov
5056
uses: codecov/codecov-action@v1
5157
if: matrix.python-version == 3.10

0 commit comments

Comments
 (0)