diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 03da5d2..3d68edd 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -2,6 +2,10 @@ name: Linters/Tests on: pull_request +concurrency: + group: check-${{ github.ref }} + cancel-in-progress: true + jobs: tests: @@ -20,13 +24,13 @@ jobs: with: python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip wheel setuptools - python -m pip install --upgrade tox tox-py - - name: Run tox targets for ${{ matrix.python-version }} - run: tox --py current + - name: Install tox + run: python -m pip install tox-gh>=1.2 + - name: Setup test suite + run: tox -vv --notest + - name: Run test suite + run: tox --skip-pkg-install lint: name: Run black