From 81a96e2b436d63c4472da3e9ae22f4ed70b635a4 Mon Sep 17 00:00:00 2001 From: ajfriend Date: Mon, 30 Dec 2024 21:11:39 -0800 Subject: [PATCH] don't repeat tests --- .github/workflows/lint_and_coverage.yml | 4 ++-- makefile | 4 ++-- pyproject.toml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/lint_and_coverage.yml b/.github/workflows/lint_and_coverage.yml index ab23b27c..723677cc 100644 --- a/.github/workflows/lint_and_coverage.yml +++ b/.github/workflows/lint_and_coverage.yml @@ -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 diff --git a/makefile b/makefile index e6b02837..df39c8f4 100644 --- a/makefile +++ b/makefile @@ -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 diff --git a/pyproject.toml b/pyproject.toml index e1cc0ba9..06ce0e3b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 = [