Skip to content

Commit b32bfb4

Browse files
committed
CI: Prevent concurrent builds.
1 parent 618658f commit b32bfb4

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,23 @@ name: CI tests
22

33
on:
44
push:
5-
create:
5+
paths:
6+
- '**'
7+
- '!.github/**'
8+
- '.github/workflows/ci.yml'
9+
pull_request:
10+
paths:
11+
- '**'
12+
- '!.github/**'
13+
- '.github/workflows/ci.yml'
14+
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
17+
cancel-in-progress: true
18+
19+
permissions:
20+
contents: read # to fetch code (actions/checkout)
21+
622

723
jobs:
824
sdist:
@@ -156,9 +172,7 @@ jobs:
156172
- "3.10"
157173
- "3.11"
158174
- "3.12"
159-
# Py3.13.4 currently fails to build on Windows:
160-
# https://discuss.python.org/t/heads-up-3-13-5-release-coming-soon/94535
161-
- "3.13.5"
175+
- "3.13"
162176
- "3.13t"
163177
- "3.14-dev"
164178
- "3.14t-dev"

.github/workflows/wheels.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ on:
3030
- setup.py
3131
workflow_dispatch:
3232

33+
concurrency:
34+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
35+
cancel-in-progress: true
36+
3337
permissions: {}
3438

3539
jobs:

0 commit comments

Comments
 (0)