Skip to content

Commit 0d0f504

Browse files
author
Drew Yang
committed
fix: 🐛 fix lint/test trigger
1 parent a0fc4ea commit 0d0f504

File tree

2 files changed

+29
-19
lines changed

2 files changed

+29
-19
lines changed

.github/workflows/lint.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Test
2+
on:
3+
push:
4+
branches:
5+
- "**" # every branch
6+
- "!gh-pages" # exclude gh-pages branch
7+
- "!stage*" # exclude branches beginning with stage
8+
pull_request:
9+
branches:
10+
- "**" # every branch
11+
- "!gh-pages" # exclude gh-pages branch
12+
- "!stage*" # exclude branches beginning with stage
13+
jobs:
14+
lint:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-python@v5
19+
# enforce the same check as pre-commit
20+
# but only run important checks
21+
- uses: pre-commit/[email protected]
22+
with:
23+
extra_args: codespell --all-files
24+
- uses: pre-commit/[email protected]
25+
with:
26+
extra_args: black --all-files
27+
- uses: pre-commit/[email protected]
28+
with:
29+
extra_args: flake8 --all-files

.github/workflows/test.yaml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88
paths:
99
- "datajoint"
1010
- "tests"
11-
- ".pre-commit-config.yaml"
1211
pull_request:
1312
branches:
1413
- "**" # every branch
@@ -17,27 +16,9 @@ on:
1716
paths:
1817
- "datajoint"
1918
- "tests"
20-
- ".pre-commit-config.yaml"
2119
jobs:
22-
lint:
23-
runs-on: ubuntu-latest
24-
steps:
25-
- uses: actions/checkout@v4
26-
- uses: actions/setup-python@v5
27-
# enforce the same check as pre-commit
28-
# but only run important checks
29-
- uses: pre-commit/[email protected]
30-
with:
31-
extra_args: codespell --all-files
32-
- uses: pre-commit/[email protected]
33-
with:
34-
extra_args: black --all-files
35-
- uses: pre-commit/[email protected]
36-
with:
37-
extra_args: flake8 --all-files
3820
test:
3921
runs-on: ubuntu-latest
40-
needs: lint
4122
strategy:
4223
matrix:
4324
py_ver: ["3.9", "3.10", "3.11", "3.12", "3.13"]

0 commit comments

Comments
 (0)