Skip to content

Commit

Permalink
Bake coverage & doctest flags into pytest config
Browse files Browse the repository at this point in the history
  • Loading branch information
jakirkham committed Nov 4, 2022
1 parent 541055c commit 6223a66
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
run: flake8 numcodecs

- name: Run tests
run: pytest -v --cov=numcodecs --cov-report xml --doctest-modules --doctest-glob=*.pyx numcodecs
run: pytest -v --cov-report xml numcodecs

- uses: codecov/codecov-action@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-osx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
shell: "bash -l {0}"
run: |
conda activate env
pytest -v --cov=numcodecs --cov-report xml numcodecs
pytest -v --cov-report xml numcodecs
- uses: codecov/codecov-action@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
shell: "bash -l {0}"
run: |
conda activate env
pytest -v --cov=numcodecs --cov-report xml numcodecs
pytest -v --cov-report xml numcodecs
- uses: codecov/codecov-action@v3
with:
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ exclude_lines = [
]

[tool.pytest.ini_options]
addopts = "--cov=numcodecs --doctest-modules --doctest-glob=*.pyx"
doctest_optionflags = [
"NORMALIZE_WHITESPACE",
"ELLIPSIS",
Expand Down

0 comments on commit 6223a66

Please sign in to comment.