Skip to content

Commit

Permalink
Copy concurrency setting from setuptools
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Nov 5, 2023
1 parent 64eb463 commit 7a04cbd
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ name: tests

on: [push, pull_request]

concurrency:
group: >-
${{ github.workflow }}-
${{ github.ref_type }}-
${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

permissions:
contents: read

Expand All @@ -18,10 +25,6 @@ env:
TOX_OVERRIDE: >-
testenv.pass_env+=GITHUB_*,FORCE_COLOR
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

jobs:
test:
strategy:
Expand Down

0 comments on commit 7a04cbd

Please sign in to comment.