github actions: only check invalidcode, linting is to be auto-handled by black

This commit is contained in:
Alexandre Aubin 2021-08-27 22:13:31 +02:00
parent 7674efe97f
commit 55774ef8fc
2 changed files with 5 additions and 5 deletions

View file

@ -27,7 +27,7 @@ jobs:
- name: Test with tox
run: tox -e py37-pytest
lint:
invalidcode:
runs-on: ubuntu-latest
strategy:
matrix:
@ -38,11 +38,9 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install apt dependencies
run: sudo apt install ldap-utils slapd libsasl2-dev libldap2-dev libssl-dev
- name: Install tox
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Linter
run: tox -e py37-lint
run: tox -e py37-invalidcode

View file

@ -1,6 +1,6 @@
[tox]
envlist =
py37-{pytest,lint}
py37-{pytest,lint,invalidcode}
format
format-check
docs
@ -13,9 +13,11 @@ extras = tests
deps =
py37-pytest: .[tests]
py37-lint: flake8
py37-invalidcode: flake8
commands =
py37-pytest: pytest {posargs} -c pytest.ini
py37-lint: flake8 moulinette test
py37-invalidcode: flake8 moulinette test --select F
[gh-actions]
python =