From d268f4015429ff743ae8d1fdf7af5a6ee1daa9d6 Mon Sep 17 00:00:00 2001 From: scaramallion Date: Mon, 13 Nov 2023 09:19:56 +1100 Subject: [PATCH] Use env again --- .github/workflows/pr-linter.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pr-linter.yml b/.github/workflows/pr-linter.yml index 45f7bc8df..29f90bdb5 100644 --- a/.github/workflows/pr-linter.yml +++ b/.github/workflows/pr-linter.yml @@ -50,14 +50,19 @@ jobs: '${{ steps.diff-files.outputs.files_added }}\n${{ steps.diff-files.outputs.files_modified }}' | grep '\.py' | tr '\n' ' ' )" >> $GITHUB_OUTPUT - - name: Activate env - run: | - source .venv/bin/activate - name: Check code formatting - run: black . --check + run: | + source .venv/bin/activate && + black . --check - name: Check spelling - run: codespell -L ddress,halp,ot,pres,requestor,requestors -d pynetdicom + run: | + source .venv/bin/activate && + codespell -L ddress,halp,ot,pres,requestor,requestors -d pynetdicom - name: Check for syntax errors - run: python -m flake8 --select=E901,E999,F822,F823 ${{ steps.pydiff.outputs.pyfiles }} --ignore F821 + run: | + source .venv/bin/activate && + python -m flake8 --select=E901,E999,F822,F823 ${{ steps.pydiff.outputs.pyfiles }} --ignore F821 - name: Check for style warnings - run: python -m flake8 --exit-zero ${{ steps.pydiff.outputs.pyfiles }} + run: | + source .venv/bin/activate && + python -m flake8 --exit-zero ${{ steps.pydiff.outputs.pyfiles }}