diff --git a/.github/workflows/build_deploy.yml b/.github/workflows/build_deploy.yml index b0d2d08..7592c99 100644 --- a/.github/workflows/build_deploy.yml +++ b/.github/workflows/build_deploy.yml @@ -22,29 +22,21 @@ jobs: syntax_check: name: Check for syntax errors runs-on: ubuntu-latest - strategy: - matrix: - python-version: [3.6] - os: [ubuntu-latest, windows-latest, macos-latest] steps: - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + - name: Flake8 - Error on syntax errors or undefined names + uses: py-actions/flake8@v1.1.0 with: - python-version: ${{ matrix.python-version }} + args: --count --select=E9,F63,F7,F82 --show-source --statistics + update-pip: "true" - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install flake8 - - - 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 - # Exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Flake8 - Warn on everything else + uses: py-actions/flake8@v1.1.0 + with: + args: --count --exit-zero --max-complexity=10 --statistics + max-line-length: 127 + update-pip: "true" pytest: name: Pytest @@ -71,7 +63,6 @@ jobs: - name: Test with pytest run: pytest - build_wheels: name: Build wheels needs: [pytest, matrix_prep]