Skip to content

Commit

Permalink
test: ci should cancel older jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Dec 4, 2022
1 parent 7c2f9fc commit 09ed8b4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down

0 comments on commit 09ed8b4

Please sign in to comment.