Skip to content

Commit

Permalink
[CI] Run flake8 only once in CI (#892)
Browse files Browse the repository at this point in the history
  • Loading branch information
samschott committed May 20, 2022
1 parent 5e5cb4a commit 72f2eb7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/workflows/tests.yml
Expand Up @@ -13,6 +13,21 @@ on:
- "tests/*.py"

jobs:
lint:
name: Linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: "3.7"
- name: Install test dependencies
run: python -m pip install tox
- name: Run flake8
run: |
tox -e flake8
tests:
name: Run tests for ${{ matrix.os }} for ${{ matrix.python }}
runs-on: ${{ matrix.os }}
Expand Down
8 changes: 7 additions & 1 deletion tox.ini
Expand Up @@ -7,5 +7,11 @@ usedevelop = true
deps =
-r requirements-tests.txt
commands =
python -m flake8 docs tools src tests
python -bb -m pytest {posargs}

[testenv:flake8]
usedevelop = true
deps =
-r requirements-tests.txt
commands =
python -m flake8 docs tools src tests

0 comments on commit 72f2eb7

Please sign in to comment.