Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorybchris committed Sep 11, 2024
1 parent 82dec32 commit f221dec
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 15 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/legacy_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,18 @@ jobs:
run: |
poetry run mypy .
- name: Run pydocstyle
shell: bash
run: |
poetry run pydocstyle hume
- name: Run pytest
shell: bash
env:
HUME_DEV_API_KEY: ${{ secrets.HUME_DEV_API_KEY }}
run: |
poetry run pytest tests/custom/_legacy --cov=hume --cov-report=html --cov-report=xml --cov-branch -m "(not service) and (not microphone)"
- name: Run pydocstyle
shell: bash
run: |
poetry run pydocstyle hume
- name: Upload HTML Coverage
uses: actions/upload-artifact@v2
with:
Expand Down Expand Up @@ -121,7 +121,7 @@ jobs:
env:
HUME_DEV_API_KEY: ${{ secrets.HUME_DEV_API_KEY }}
run: |
poetry run pytest tests/custom/_legacy -m service
poetry run pytest tests/custom/_legacy --cov=hume --cov-report=html --cov-report=xml --cov-branch -m service
- name: Upload HTML Coverage
uses: actions/upload-artifact@v2
Expand All @@ -135,6 +135,11 @@ jobs:
name: hume-service-coverage-xml
path: hume/coverage.xml

- name: Check Coverage
shell: bash
run: |
poetry run covcheck coverage.xml --config pyproject.toml --group service
build-microphone:
runs-on: ubuntu-latest

Expand Down
26 changes: 17 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,23 @@ testbook = "^0.4.2"
types-aiofiles = "^24.1.0.20240626"
types-python-dateutil = "^2.9.0.20240316"

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

[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core"]

[tool.covcheck.group.unit.coverage]
branch = 40.0
line = 60.0

[tool.covcheck.group.service.coverage]
branch = 50.0
line = 70.0

[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
Expand All @@ -91,12 +108,3 @@ plugins = ["pydantic.mypy"]

[tool.ruff]
line-length = 120

[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core"]

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

0 comments on commit f221dec

Please sign in to comment.