Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
Changed coverage parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
evalott100 committed Jun 20, 2023
1 parent 8d283aa commit c68c75e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
run: pipdeptree

- name: Run tests
run: pytest
run: tox -e pytest

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
Expand Down
7 changes: 5 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
"python.linting.flake8Enabled": true,
"python.linting.mypyEnabled": true,
"python.linting.enabled": true,
"python.testing.pytestArgs": [],
"python.testing.pytestArgs": [
"--cov=python3_pip_skeleton",
"--cov-report xml:cov.xml"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"python.formatting.provider": "black",
Expand All @@ -12,4 +15,4 @@
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
}
}
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ exclude = [".tox", "venv"]
# Run pytest with all our checkers, and don't spam us with massive tracebacks on error
addopts = """
--tb=native -vv --doctest-modules --doctest-glob="*.rst"
--cov=python3_pip_skeleton --cov-report term --cov-report xml:cov.xml
"""
# https://iscinumpy.gitlab.io/post/bound-version-constraints/#watch-for-warnings
filterwarnings = "error"
Expand Down Expand Up @@ -107,7 +106,7 @@ allowlist_externals =
sphinx-build
sphinx-autobuild
commands =
pytest: pytest {posargs}
pytest: pytest --cov=python3_pip_skeleton --cov-report term --cov-report xml:cov.xml {posargs}
mypy: mypy src tests {posargs}
pre-commit: pre-commit run --all-files {posargs}
docs: sphinx-{posargs:build -EW --keep-going} -T docs build/html
Expand Down

0 comments on commit c68c75e

Please sign in to comment.