Skip to content

Commit

Permalink
move around the testing for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ajfriend committed Dec 29, 2024
1 parent bd89a93 commit 0da803e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: coverage-lint
name: lint

on:
push:
Expand All @@ -7,9 +7,9 @@ on:
branches: ['*']

jobs:
tests:
name: Coverage and Lint
runs-on: ubuntu-22.04
linting:
name: Lint
runs-on: ubuntu-24.04

steps:
- uses: actions/[email protected]
Expand All @@ -18,10 +18,16 @@ jobs:

- uses: actions/[email protected]
with:
python-version: 3.11
python-version: 3.12

- name: Install from source
run: pip install .[test]

- name: Run Linting
uses: astral-sh/ruff-action@v3

- name: Coverage
run: |
pip install cython
cythonize tests/test_cython/cython_example.pyx
pytest --cov-fail-under=99
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=tests --cov-report=term-missing --durations=10 --cov-fail-under=99"
addopts = "--cov=h3 --cov=tests --cov-report=term-missing --durations=10"

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

0 comments on commit 0da803e

Please sign in to comment.