From 06c197f546d91e518cba41623d2ceb28660481ec Mon Sep 17 00:00:00 2001 From: David-Wobrock Date: Thu, 26 Nov 2020 18:34:47 +0100 Subject: [PATCH] Do lint in another job than the build --- .github/workflows/ci-build.yml | 17 +++++++++++++++++ tox.ini | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index fc10904..fa07088 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -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 diff --git a/tox.ini b/tox.ini index eddb7ed..c2c317b 100644 --- a/tox.ini +++ b/tox.ini @@ -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