Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sdb9696 committed Apr 16, 2024
1 parent 02578d0 commit 78b1abe
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/actions/setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ inputs:


outputs:
uv-activate-cmd:
cmd-prefix:
description: "Cmd to activate uv venv"
value: ${{ steps.uv-variables-setup.outputs.uv-activate-cmd }}
value: "${{ steps.uv-variables-setup.outputs.uv-activate-cmd }} ; "

runs:
using: composite
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,35 +30,35 @@ jobs:
poetry-version: ${{ env.POETRY_VERSION }}
use-uv-installer: true
- name: "Check supported device md files are up to date"
run: |
run: >
${{ steps.setup-environment.outputs.uv-activate-cmd }}
pre-commit run generate-supported --all-files
- name: "Linting and code formating (ruff)"
run: |
run: >
${{ steps.setup-environment.outputs.uv-activate-cmd }}
pre-commit run ruff --all-files
- name: "Typing checks (mypy)"
run: |
run: >
${{ steps.setup-environment.outputs.uv-activate-cmd }}
pre-commit run mypy --all-files
- name: "Run trailing-whitespace"
run: |
run: >
${{ steps.setup-environment.outputs.uv-activate-cmd }}
pre-commit run trailing-whitespace --all-files
- name: "Run end-of-file-fixer"
run: |
run: >
${{ steps.setup-environment.outputs.uv-activate-cmd }}
pre-commit run end-of-file-fixer --all-files
- name: "Run check-docstring-first"
run: |
run: >
${{ steps.setup-environment.outputs.uv-activate-cmd }}
pre-commit run check-docstring-first --all-files
- name: "Run debug-statements"
run: |
run: >
${{ steps.setup-environment.outputs.uv-activate-cmd }}
pre-commit run debug-statements --all-files
- name: "Run check-ast"
run: |
run: >
${{ steps.setup-environment.outputs.uv-activate-cmd }}
pre-commit run check-ast --all-files
Expand Down Expand Up @@ -107,12 +107,12 @@ jobs:
poetry-install-options: ${{ matrix.extras == true && '--all-extras' || '' }}
- name: "Run tests (no coverage)"
if: ${{ startsWith(matrix.python-version, 'pypy') }}
run: |
run: >
${{ steps.setup-environment.outputs.uv-activate-cmd }}
pytest
- name: "Run tests (with coverage)"
if: ${{ !startsWith(matrix.python-version, 'pypy') }}
run: |
run: >
${{ steps.setup-environment.outputs.uv-activate-cmd }}
pytest --cov kasa --cov-report xml
- name: "Upload coverage to Codecov"
Expand Down

0 comments on commit 78b1abe

Please sign in to comment.