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 - name: Test with tox
run: tox -e py37-pytest run: tox -e py37-pytest
lint: invalidcode:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
@ -38,11 +38,9 @@ jobs:
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: ${{ matrix.python-version }} 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 - name: Install tox
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install tox tox-gh-actions pip install tox tox-gh-actions
- name: Linter - name: Linter
run: tox -e py37-lint run: tox -e py37-invalidcode

View file

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