Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sdb9696 committed Apr 15, 2024
1 parent 5b8262b commit 9e21294
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,31 @@ jobs:
pre-commit run generate-supported --all-files
- name: "Linting and code formating (ruff)"
run: |
${{ steps.setup-environment.outputs.uv-activate-cmd }}
pre-commit run ruff --all-files
- name: "Typing checks (mypy)"
run: |
${{ steps.setup-environment.outputs.uv-activate-cmd }}
pre-commit run mypy --all-files
- name: "Run trailing-whitespace"
run: |
${{ steps.setup-environment.outputs.uv-activate-cmd }}
pre-commit run trailing-whitespace --all-files
- name: "Run end-of-file-fixer"
run: |
${{ steps.setup-environment.outputs.uv-activate-cmd }}
pre-commit run end-of-file-fixer --all-files
- name: "Run check-docstring-first"
run: |
${{ steps.setup-environment.outputs.uv-activate-cmd }}
pre-commit run check-docstring-first --all-files
- name: "Run debug-statements"
run: |
${{ steps.setup-environment.outputs.uv-activate-cmd }}
pre-commit run debug-statements --all-files
- name: "Run check-ast"
run: |
${{ steps.setup-environment.outputs.uv-activate-cmd }}
pre-commit run check-ast --all-files
Expand Down Expand Up @@ -97,13 +104,16 @@ jobs:
poetry-version: ${{ env.POETRY_VERSION }}
use-uv-installer: true
poetry-install-options: ${{ matrix.extras == true && '--all-extras' || '' }}
uv-install-cmd: ${{ matrix.extras == true && '.[speedups,shell]' || '' }}
- name: "Run tests (no coverage)"
if: ${{ startsWith(matrix.python-version, 'pypy') }}
run: |
${{ steps.setup-environment.outputs.uv-activate-cmd }}
pytest
- name: "Run tests (with coverage)"
if: ${{ !startsWith(matrix.python-version, 'pypy') }}
run: |
${{ steps.setup-environment.outputs.uv-activate-cmd }}
pytest --cov kasa --cov-report xml
- name: "Upload coverage to Codecov"
uses: "codecov/codecov-action@v3"
Expand Down

0 comments on commit 9e21294

Please sign in to comment.