fix(build): test coverage in pytest

This commit is contained in:
Arthur Meyre
2021-09-20 11:46:34 +02:00
parent fbec6e7235
commit 5aa4ce1ef8
2 changed files with 3 additions and 2 deletions

View File

@@ -181,7 +181,7 @@ jobs:
make pytest_nb
- name: Test coverage
id: coverage
if: ${{ steps.pytest.outcome != 'skipped' && !cancelled() }}
if: ${{ always() && steps.pytest.outcome != 'skipped' && !cancelled() }}
run: |
./script/actions_utils/coverage.sh ${{ github.base_ref }}
- name: Archive test coverage

View File

@@ -76,7 +76,8 @@ pcc_internal: check_python_format check_finalize_nb python_linting mypy_ci pydoc
pytest:
poetry run pytest -svv \
--cov=$(SRC_DIR) --cov-report=term-missing:skip-covered --cov-report=xml tests/
--cov=$(SRC_DIR) --cov-fail-under=100 \
--cov-report=term-missing:skip-covered --cov-report=xml tests/
.PHONY: pytest
# Not a huge fan of ignoring missing imports, but some packages do not have typing stubs