Do lint in another job than the build

This commit is contained in:
David-Wobrock authored and David Wobrock committed 2020-11-26 18:43:34 +01:00
1 parent 321b41ddd0
commit 06c197f546
2 files changed
+18 -1

No files matched your search

+17
View File
@@ -45,3 +45,20 @@ jobs:
run: python -m pip install tox tox-gh-actions
- name: Test with tox ${{ matrix.python-version }}
run: tox
lint:
name: Linting
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python 3.6
uses: actions/setup-python@v2
with:
python-version: 3.6
- name: Install dependencies
run: python -m pip install tox
- name: Lint with tox
run: tox
env:
TOXENV: lint
+1 -1
View File
@@ -9,7 +9,7 @@ envlist =
python =
2.7: py27
3.5: py35
3.6: py36, lint
3.6: py36
3.7: py37
3.8: py38