Skip to content

Commit 468a841

Browse files
authored
Improve CI definitons (#153)
1 parent 41a8288 commit 468a841

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,18 @@ name: Test and lint
22

33
on:
44
push:
5+
branches:
6+
- main
57
pull_request:
68
workflow_dispatch:
79

810
permissions:
911
contents: read
1012

13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
15+
cancel-in-progress: true
16+
1117
jobs:
1218
tests:
1319
name: Run tests

.github/workflows/package.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,18 @@ name: Test packaging
22

33
on:
44
push:
5+
branches:
6+
- main
57
pull_request:
8+
workflow_dispatch:
69

710
permissions:
811
contents: read
912

13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
15+
cancel-in-progress: true
16+
1017
jobs:
1118
wheel:
1219
name: Test wheel install
@@ -23,7 +30,7 @@ jobs:
2330
- name: Install pypa/build
2431
run: |
2532
# Be wary of running `pip install` here, since it becomes easy for us to
26-
# accidentally pick up typing_extensions as installed by a dependency
33+
# accidentally pick up typing_extensions as installed by a dependency
2734
python -m pip install --upgrade build
2835
python -m pip list
2936
@@ -53,7 +60,7 @@ jobs:
5360
- name: Install pypa/build
5461
run: |
5562
# Be wary of running `pip install` here, since it becomes easy for us to
56-
# accidentally pick up typing_extensions as installed by a dependency
63+
# accidentally pick up typing_extensions as installed by a dependency
5764
python -m pip install --upgrade build
5865
python -m pip list
5966

0 commit comments

Comments
 (0)