Skip to content

Commit

Permalink
don't repeat tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ajfriend committed Dec 31, 2024
1 parent 0a5eac0 commit 81a96e2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint_and_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:

- name: Coverage Requirement - Library
run: |
pytest --cov=tests/test_lib --cov-fail-under=100
pytest tests/test_lib --cov=h3 --cov=tests/test_lib --cov-fail-under=100
- name: Coverage - Cython
run: |
pip install cython
cythonize tests/test_cython/cython_example.pyx
pytest --cov=tests/test_cython
pytest tests/test_cython --cov=tests/test_cython
4 changes: 2 additions & 2 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ purge: clear
-@rm -rf env

test:
./env/bin/pytest --cov=tests/test_lib --cov-fail-under=100
./env/bin/pytest tests/test_lib --cov=h3 --cov=tests/test_lib --cov-fail-under=100

./env/bin/pip install cython
./env/bin/cythonize tests/test_cython/cython_example.pyx
./env/bin/pytest --cov=tests/test_cython
./env/bin/pytest tests/test_cython --cov=tests/test_cython

lint:
./env/bin/ruff check
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ all = [
]

[tool.pytest.ini_options]
addopts = "--cov=h3 --cov-report=term-missing --durations=10"
addopts = "--cov-report=term-missing --durations=10"

[tool.coverage.run]
omit = [
Expand Down

0 comments on commit 81a96e2

Please sign in to comment.