fix(ci): run python commands with poetry

This commit is contained in:
Ashhhleyyy 2024-03-31 18:04:39 +01:00
parent c2795b84bb
commit 046fd3e86a
Signed by: ash
GPG key ID: 83B789081A0878FB

View file

@ -25,15 +25,15 @@ jobs:
- name: Lint with flake8 - name: Lint with flake8
run: | run: |
# stop the build if there are Python syntax errors or undefined names # 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 # 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 - name: Test with unittest
if: ${{ always() }} if: ${{ always() }}
timeout-minutes: 10 timeout-minutes: 10
run: | run: |
python -m sounddevice poetry run python -m sounddevice
python -m unittest poetry run python -m unittest
- name: Archive test logs - name: Archive test logs
if: ${{ always() }} if: ${{ always() }}
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4