Skip to content

Commit

Permalink
Move coverage configuration to ci.yml (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorybchris authored Sep 16, 2024
1 parent 84df808 commit f34fc94
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/legacy_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
- name: Check Coverage
shell: bash
run: |
poetry run covcheck coverage.xml --config pyproject.toml --group unit
poetry run covcheck coverage.xml --group unit --line 62 --branch 26
build-service:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -135,7 +135,7 @@ jobs:
- name: Check Coverage
shell: bash
run: |
poetry run covcheck coverage.xml --config pyproject.toml --group service
poetry run covcheck coverage.xml --group service --line 67 --branch 30
build-microphone:
runs-on: ubuntu-latest
Expand Down
14 changes: 3 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,9 @@ requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.poetry.extras]
examples=["jupyter"]
microphone=["pydub", "simpleaudio", "sounddevice"]
legacy=["pydub"]

[tool.covcheck.group.unit.coverage]
branch = 26.0
line = 62.0

[tool.covcheck.group.service.coverage]
branch = 30.0
line = 67.0
examples = ["jupyter"]
microphone = ["pydub", "simpleaudio", "sounddevice"]
legacy = ["pydub"]

[tool.pytest.ini_options]
asyncio_mode = "auto"
Expand Down

0 comments on commit f34fc94

Please sign in to comment.