Skip to content

Commit

Permalink
Only run coverage in ubuntu / python 3.12 (#2049)
Browse files Browse the repository at this point in the history
  • Loading branch information
janiversen authored Feb 22, 2024
1 parent bb9ce24 commit 974d626
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,16 @@ jobs:
ruff .
- name: pytest
if: ${{ (matrix.os != 'ubuntu-latest') || (matrix.python != '3.12') }}
run: |
env
pytest --cov
pytest
- name: pytest coverage
if: ${{ (matrix.os == 'ubuntu-latest') && (matrix.python == '3.12') }}
run: |
env
pytest --cov
analyze:
name: Analyze Python
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ exclude_also = [
"if __name__ == .__main__.:",
]
skip_covered = true
fail_under = 70.0
fail_under = 90.0

[tool.coverage.html]
directory = "build/cov"
Expand Down

0 comments on commit 974d626

Please sign in to comment.