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

Commit c68c75e

Browse files
committed
Changed coverage parameters
1 parent 8d283aa commit c68c75e

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.github/workflows/code.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
run: pipdeptree
6464

6565
- name: Run tests
66-
run: pytest
66+
run: tox -e pytest
6767

6868
- name: Upload coverage to Codecov
6969
uses: codecov/codecov-action@v3

.vscode/settings.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
"python.linting.flake8Enabled": true,
44
"python.linting.mypyEnabled": true,
55
"python.linting.enabled": true,
6-
"python.testing.pytestArgs": [],
6+
"python.testing.pytestArgs": [
7+
"--cov=python3_pip_skeleton",
8+
"--cov-report xml:cov.xml"
9+
],
710
"python.testing.unittestEnabled": false,
811
"python.testing.pytestEnabled": true,
912
"python.formatting.provider": "black",
@@ -12,4 +15,4 @@
1215
"editor.codeActionsOnSave": {
1316
"source.organizeImports": true
1417
}
15-
}
18+
}

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ exclude = [".tox", "venv"]
7575
# Run pytest with all our checkers, and don't spam us with massive tracebacks on error
7676
addopts = """
7777
--tb=native -vv --doctest-modules --doctest-glob="*.rst"
78-
--cov=python3_pip_skeleton --cov-report term --cov-report xml:cov.xml
7978
"""
8079
# https://iscinumpy.gitlab.io/post/bound-version-constraints/#watch-for-warnings
8180
filterwarnings = "error"
@@ -107,7 +106,7 @@ allowlist_externals =
107106
sphinx-build
108107
sphinx-autobuild
109108
commands =
110-
pytest: pytest {posargs}
109+
pytest: pytest --cov=python3_pip_skeleton --cov-report term --cov-report xml:cov.xml {posargs}
111110
mypy: mypy src tests {posargs}
112111
pre-commit: pre-commit run --all-files {posargs}
113112
docs: sphinx-{posargs:build -EW --keep-going} -T docs build/html

0 commit comments

Comments
 (0)