This repository was archived by the owner on Mar 13, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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" ,
1215 "editor.codeActionsOnSave" : {
1316 "source.organizeImports" : true
1417 }
15- }
18+ }
Original file line number Diff line number Diff 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
7676addopts = """
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
8180filterwarnings = " error"
@@ -107,7 +106,7 @@ allowlist_externals =
107106 sphinx-build
108107 sphinx-autobuild
109108commands =
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
You can’t perform that action at this time.
0 commit comments