diff --git a/.github/workflows/linting.yaml b/.github/workflows/linting.yaml index 3d3a458743c3891f1e75d891ce10b0337f9dcb63..c438f5de81e3edbf66c4fc4343000c4e1019c7c5 100644 --- a/.github/workflows/linting.yaml +++ b/.github/workflows/linting.yaml @@ -19,6 +19,12 @@ jobs: architecture: 'x64' - name: find trailing whitespace uses: harupy/find-trailing-whitespace@master + - name: Install tools + if: always() + run: | + python -m pip install --upgrade pip + pip install flake8==3.9.1 pylint==2.13.8 + #if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Run black uses: psf/black@stable with: @@ -26,11 +32,6 @@ jobs: #options: "--check --diff" #src: "." version: "22.3.0" - - name: Install tools - run: | - python -m pip install --upgrade pip - pip install flake8==3.9.1 pylint==2.13.8 - #if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names