From 09ed8b4d8ab2c6e29fa8b3fce41290f6750ac5fc Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 4 Dec 2022 11:47:27 -0500 Subject: [PATCH] test: ci should cancel older jobs --- .github/workflows/tests.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 14bf40d..24cb6a1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -12,11 +12,18 @@ on: # week, Sundays at 6:00 UTC. - cron: "0 6 * * 0" +concurrency: + group: "${{ github.workflow }}-${{ github.ref }}" + cancel-in-progress: true defaults: run: shell: bash +env: + PIP_DISABLE_PIP_VERSION_CHECK: 1 + FORCE_COLOR: 1 # Get colored pytest output + jobs: tests: name: "Python ${{ matrix.python-version }} on ${{ matrix.os }}"