Skip to content

Commit

Permalink
refactor: set fail_under parameter in pyproject
Browse files Browse the repository at this point in the history
  • Loading branch information
12rambau committed Oct 18, 2023
1 parent 26478b4 commit 85b91b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ on:
pull_request:
workflow_call:

env:
COVERAGE_THRESHOLD: 60

jobs:
lint:
strategy:
Expand Down Expand Up @@ -91,7 +88,7 @@ jobs:
pip install nox
nox -s compile
- name: Run tests
run: pytest -m "not a11y" --color=yes --cov --cov-report=xml --cov-fail-under ${{ env.COVERAGE_THRESHOLD }}
run: pytest -m "not a11y" --color=yes --cov --cov-report=xml
- name: Upload to Codecov
if: matrix.python-version == '3.11' && matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v3
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,6 @@ markers = "a11y: mark a test as an accessibility test"

[tool.coverage.run]
source = ["pydata_sphinx_theme"]

[tool.coverage.report]
fail_under = 60

0 comments on commit 85b91b4

Please sign in to comment.