Skip to content

Commit

Permalink
Simplify coverage workflow reporting
Browse files Browse the repository at this point in the history
``PYTHONDEVMODE`` and ``PYTHONWARNDEFAULTENCODING`` are used in the
main tests, remove from the coverage workflow.
  • Loading branch information
AA-Turner committed Feb 15, 2023
1 parent 9b10452 commit cfd43d4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,8 @@ jobs:
python -m pip install .[test] pytest-cov
- name: Test with pytest
run: python -m pytest -vv
run: python -m pytest -vv --cov . --cov-append --cov-config pyproject.toml
env:
PYTHONDEVMODE: "1" # -X dev
PYTHONWARNDEFAULTENCODING: "1" # -X warn_default_encoding
PYTHONWARNINGS: "error,always:unclosed:ResourceWarning,always::CoverageWarning"
PYTEST_ADDOPTS: "--cov ./ --cov-append --cov-config pyproject.toml"
VIRTUALENV_SYSTEM_SITE_PACKAGES: "1"

- name: codecov
Expand Down

0 comments on commit cfd43d4

Please sign in to comment.