mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
github actions: only check invalidcode, linting is to be auto-handled by black
This commit is contained in:
parent
7674efe97f
commit
55774ef8fc
2 changed files with 5 additions and 5 deletions
6
.github/workflows/tox.yml
vendored
6
.github/workflows/tox.yml
vendored
|
@ -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
|
||||
|
|
4
tox.ini
4
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 =
|
||||
|
|
Loading…
Add table
Reference in a new issue