fix(ci): run python commands with poetry
This commit is contained in:
parent
c2795b84bb
commit
046fd3e86a
1 changed files with 4 additions and 4 deletions
8
.github/workflows/test.yaml
vendored
8
.github/workflows/test.yaml
vendored
|
@ -25,15 +25,15 @@ jobs:
|
|||
- name: Lint with flake8
|
||||
run: |
|
||||
# stop the build if there are Python syntax errors or undefined names
|
||||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||
poetry run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
||||
flake8 . --count --ignore=E402,E226,E24,W50,W690 --max-complexity=25 --max-line-length=127 --statistics
|
||||
poetry run flake8 . --count --ignore=E402,E226,E24,W50,W690 --max-complexity=25 --max-line-length=127 --statistics
|
||||
- name: Test with unittest
|
||||
if: ${{ always() }}
|
||||
timeout-minutes: 10
|
||||
run: |
|
||||
python -m sounddevice
|
||||
python -m unittest
|
||||
poetry run python -m sounddevice
|
||||
poetry run python -m unittest
|
||||
- name: Archive test logs
|
||||
if: ${{ always() }}
|
||||
uses: actions/upload-artifact@v4
|
||||
|
|
Loading…
Reference in a new issue