Skip to content

Commit a9559ba

Browse files
Bordahugovk
andauthored
CI: set concurrency (#112)
Co-authored-by: Hugo van Kemenade <[email protected]>
1 parent 7e92006 commit a9559ba

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/lint.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ env:
88
permissions:
99
contents: read
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
# cancel all except push to main branch to have always full results
14+
cancel-in-progress: ${{ !(github.event_name == 'push' && github.ref == 'refs/heads/main') }}
15+
1116
jobs:
1217
lint:
1318
runs-on: ubuntu-latest

.github/workflows/tests.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
---
2-
32
name: Tests
43

54
on: [push, pull_request, workflow_dispatch]
65

76
env:
87
FORCE_COLOR: 1
98

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
# cancel all except push to main branch to have always full results
12+
cancel-in-progress: ${{ !(github.event_name == 'push' && github.ref == 'refs/heads/main') }}
13+
1014
jobs:
1115
test:
1216
runs-on: ${{ matrix.os }}
@@ -34,9 +38,8 @@ jobs:
3438

3539
- name: Install dependencies
3640
run: |
37-
python -m pip install -U pip
38-
python -m pip install -U wheel
39-
python -m pip install -U tox
41+
pip install -U pip
42+
pip install -U tox
4043
4144
- name: Download more tests from friend projects
4245
if: matrix.python-version == '3.13' && matrix.os == 'ubuntu-latest'

0 commit comments

Comments
 (0)