From 046fd3e86ad8be9a2062746ec502090e365fdf82 Mon Sep 17 00:00:00 2001 From: Ashhhleyyy Date: Sun, 31 Mar 2024 18:04:39 +0100 Subject: [PATCH] fix(ci): run python commands with poetry --- .github/workflows/test.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index b54a30c..630c816 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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