Skip to content

Commit 46ae21f

Browse files
committed
ci: split test workflow into pre-commit and fork
1 parent eccd774 commit 46ae21f

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/test.yml

+16-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches: [ master ]
88

99
jobs:
10-
test:
10+
pre-commit:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
@@ -25,6 +25,21 @@ jobs:
2525
- name: Run pre-commit checks
2626
run: pre-commit run --all-files
2727

28+
fork:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v4
32+
33+
- name: Install pre-commit
34+
run: |
35+
python -m pip install --upgrade pip
36+
pip install pre-commit
37+
38+
- name: Setup git
39+
run: |
40+
git config --global user.email "[email protected]"
41+
git config --global user.name "Test User"
42+
2843
- name: Test fork.sh script
2944
run: |
3045
# Test basic usage (script will do its own validation)

0 commit comments

Comments
 (0)