Skip to content

Commit 9a7526c

Browse files
committed
fix(lint): triggers and concurency
1 parent 5215dab commit 9a7526c

File tree

4 files changed

+29
-5
lines changed

4 files changed

+29
-5
lines changed

.github/workflows/mypy.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
name: mypy
22

33
on:
4+
pull_request:
5+
paths:
6+
- '**/*.py' # Watch for changes in any Python files
7+
- 'pyproject.toml' # Watch for changes in the pyproject.toml file
48
push:
59
paths:
610
- '**/*.py' # Watch for changes in any Python files
7-
- 'pyproject.yml' # Watch for changes in the pyproject.yml file
11+
- 'pyproject.toml' # Watch for changes in the pyproject.toml file
812
workflow_dispatch:
913
release:
1014
types: [published]
1115

16+
concurrency:
17+
group: ci-${{github.workflow}}-${{ github.ref }}
18+
cancel-in-progress: true
19+
1220
permissions:
1321
contents: read
1422

.github/workflows/pylint.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Pylint
22

33
on:
4+
pull_request:
5+
paths:
6+
- '**/*.py' # Watch for changes in any Python files
7+
- 'pyproject.toml' # Watch for changes in the pyproject.toml file
48
push:
59
paths:
610
- '**/*.py' # Watch for changes in any Python files
@@ -9,6 +13,10 @@ on:
913
release:
1014
types: [published]
1115

16+
concurrency:
17+
group: ci-${{github.workflow}}-${{ github.ref }}
18+
cancel-in-progress: true
19+
1220
permissions:
1321
contents: read
1422

.github/workflows/pyright.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
- 'pyproject.toml' # Watch for changes in the pyproject.toml file
1212
workflow_dispatch:
1313

14+
concurrency:
15+
group: ci-${{github.workflow}}-${{ github.ref }}
16+
cancel-in-progress: true
17+
1418
permissions:
1519
contents: read
1620

.github/workflows/ruff.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
name: Ruff
22

33
on:
4+
pull_request:
5+
paths:
6+
- '**/*.py' # Watch for changes in any Python files
7+
- 'pyproject.toml' # Watch for changes in the pyproject.toml file
48
push:
59
paths:
610
- '**/*.py' # Watch for changes in any Python files
7-
- 'pyproject.yml' # Watch for changes in the pyproject.yml file
11+
- 'pyproject.toml' # Watch for changes in the pyproject.toml file
812
workflow_dispatch:
913
release:
1014
types: [published]
1115

12-
#concurrency:
13-
# group: ci-${{github.workflow}}-${{ github.ref }}
14-
# cancel-in-progress: true
16+
concurrency:
17+
group: ci-${{github.workflow}}-${{ github.ref }}
18+
cancel-in-progress: true
1519

1620
permissions:
1721
contents: read

0 commit comments

Comments
 (0)