From 55774ef8fc74b36f13557c7cce7adccf4f5d4381 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 27 Aug 2021 22:13:31 +0200 Subject: [PATCH] github actions: only check invalidcode, linting is to be auto-handled by black --- .github/workflows/tox.yml | 6 ++---- tox.ini | 4 +++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index 06971fc4..08891920 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -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 diff --git a/tox.ini b/tox.ini index 6280b75b..3ffa1342 100644 --- a/tox.ini +++ b/tox.ini @@ -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 =