From 4b435680d27334126031a04d3343aae79dc9e431 Mon Sep 17 00:00:00 2001 From: Bo-Chun Louis Chen <louistw@uab.edu> Date: Thu, 19 May 2022 13:28:42 -0500 Subject: [PATCH] Move install tools step up and always run --- .github/workflows/linting.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/linting.yaml b/.github/workflows/linting.yaml index 3d3a458..c438f5d 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 -- GitLab