Skip to content

Commit

Permalink
chore(ci): Split checkqa stage
Browse files Browse the repository at this point in the history
  • Loading branch information
pennersr committed Aug 28, 2023
1 parent 37704c3 commit b0919b5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
extra-env: ['docs', 'checkqa', 'standardjs']
extra-env: ['docs', 'black', 'isort', 'flake8', 'standardjs']
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand Down
24 changes: 15 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ envlist =
py{38,39,310,311}-django{40,41,42}
py{310,311}-djangomain
docs
checkqa
isort
black
flake8
standardjs

[testenv]
Expand Down Expand Up @@ -38,25 +40,29 @@ whitelist_externals = make
commands =
make -C {toxinidir}/docs html

[testenv:checkqa]
[testenv:isort]
skip_install = True
ignore_errors = True
deps =
flake8==6.0.0
isort==5.12.0
black==23.1.0
commands =
flake8 {posargs:{toxinidir}/allauth}
isort --check-only --skip-glob '*/migrations/*' --diff {posargs:{toxinidir}/allauth}

[testenv:black]
skip_install = True
ignore_errors = True
deps =
black==23.1.0
commands =
black --check {posargs:{toxinidir}/allauth} {posargs:{toxinidir}/setup.py}

[testenv:isort]
basepython = python3.7
[testenv:flake8]
skip_install = True
ignore_errors = True
deps =
isort >5
flake8==6.0.0
commands =
isort --skip-glob '*/migrations/*' {posargs:{toxinidir}/allauth}
flake8 {posargs:{toxinidir}/allauth}

[testenv:standardjs]
skip_install = True
Expand Down

0 comments on commit b0919b5

Please sign in to comment.