Skip to content

Commit

Permalink
simplify coverage and lint actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ajfriend committed Dec 29, 2024
1 parent ef6e897 commit bd89a93
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 81 deletions.
40 changes: 0 additions & 40 deletions .github/workflows/coverage-lint-pr.yml

This file was deleted.

40 changes: 0 additions & 40 deletions .github/workflows/coverage-lint.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: coverage-lint

on:
push:
branches: [master]
pull_request:
branches: ['*']

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

steps:
- uses: actions/checkout@v4.2.2
with:
submodules: recursive

- uses: actions/setup-python@v5.3.0
with:
python-version: 3.11

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

- name: Run Linting
uses: astral-sh/ruff-action@v3
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"
addopts = "--cov=h3 --cov=tests --cov-report=term-missing --durations=10 --cov-fail-under=99"

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

0 comments on commit bd89a93

Please sign in to comment.