Run partial tests without coverage for Python 3.8 (#60827)

This commit is contained in:
Franck Nijhof 2021-12-02 14:38:00 +01:00 committed by GitHub
parent c85bb27d0d
commit 49ebb27b44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -681,7 +681,7 @@ jobs:
-p no:sugar \
tests
- name: Run pytest (partially)
if: needs.changes.outputs.test_full_suite == 'false'
if: needs.changes.outputs.test_full_suite == 'false' && matrix.python-version != '3.8'
run: |
. venv/bin/activate
python3 -X dev -m pytest \
@ -697,6 +697,20 @@ jobs:
--durations-min=1 \
-p no:sugar \
tests/components/${{ matrix.group }}
- name: Run pytest (partially); no coverage
if: needs.changes.outputs.test_full_suite == 'false' && matrix.python-version == '3.8'
run: |
. venv/bin/activate
python3 -X dev -m pytest \
-qq \
--timeout=9 \
--durations=10 \
-n auto \
-o console_output_style=count \
--durations=0 \
--durations-min=1 \
-p no:sugar \
tests/components/${{ matrix.group }}
- name: Upload coverage to Codecov (full coverage)
if: needs.changes.outputs.test_full_suite == 'true'
uses: codecov/codecov-action@v2.1.0