From 97077d31b27768a9eaa851d8e7ae80578aed38b2 Mon Sep 17 00:00:00 2001 From: Kendell R Date: Thu, 5 Nov 2020 11:07:32 -0800 Subject: [PATCH] Conditionals --- .github/workflows/flake8.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/flake8.yaml b/.github/workflows/flake8.yaml index 3fad765..3cd8618 100644 --- a/.github/workflows/flake8.yaml +++ b/.github/workflows/flake8.yaml @@ -7,13 +7,11 @@ on: branches: [ main, master, dev, development ] jobs: - build: - + test: runs-on: ubuntu-latest strategy: matrix: python-version: [3.4, 3.5, 3.6, 3.7, 3.8, 3.9] - steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} @@ -23,8 +21,11 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install flake8 wemake-python-styleguide + pip install flake8 if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Install wemake-python-styleguide + run: pip install wemake-python-styleguide + if: endsWith( matrix.python-version, '6') - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names