Skip to content

Commit

Permalink
test: cancel old unit tests when a new PR commit is pushed
Browse files Browse the repository at this point in the history
  • Loading branch information
kdmccormick authored Jun 4, 2024
1 parent b063dfc commit 01d3eba
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ on:
branches:
- master

concurrency:
# We only need to be running tests for the latest commit on each PR
# (however, we fully test every commit on master, even as new ones land).
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}

jobs:
run-tests:
name: ${{ matrix.shard_name }}(py=${{ matrix.python-version }},dj=${{ matrix.django-version }},mongo=${{ matrix.mongo-version }})
Expand Down

0 comments on commit 01d3eba

Please sign in to comment.