Skip to content

Commit 660dc5f

Browse files
committed
[ci] split independent checks into different jobs
1 parent 9ed965b commit 660dc5f

File tree

1 file changed

+47
-11
lines changed

1 file changed

+47
-11
lines changed

.github/workflows/default.yml

Lines changed: 47 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,29 @@ on:
33
- pull_request
44

55
jobs:
6-
build:
6+
lint:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
python-version:
11+
- '3.12'
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-python@v5
15+
with:
16+
python-version: ${{ matrix.python-version }}
17+
- name: lint
18+
run: |
19+
make lint
20+
21+
test:
722
runs-on: ubuntu-latest
823
strategy:
924
fail-fast: false
1025
matrix:
1126
python-version:
1227
- '3.13'
1328
- '3.12'
14-
1529
steps:
1630
- uses: actions/checkout@v4
1731
- name: set up Python ${{ matrix.python-version }}
@@ -20,26 +34,48 @@ jobs:
2034
python-version: ${{ matrix.python-version }}
2135
- name: install dependencies
2236
run: |
23-
sudo apt-get update
24-
sudo apt-get dist-upgrade -y
25-
sudo apt-get install -y pandoc
26-
sudo apt-get install -y python3-sphinx
27-
sudo apt-get install -y python3-docutils
2837
python -m pip install --upgrade pip
2938
pip install --upgrade --requirement requirements-test.txt
30-
- name: lint
31-
# if: ${{ matrix.python-version == '3.12' }}
32-
run: |
33-
make lint
3439
- name: pytest
3540
run: |
3641
make tatsu_test
3742
- name: examples
3843
run: |
3944
make examples
45+
46+
docs:
47+
runs-on: ubuntu-latest
48+
strategy:
49+
matrix:
50+
python-version:
51+
- '3.12'
52+
steps:
53+
- uses: actions/checkout@v4
54+
- uses: actions/setup-python@v5
55+
with:
56+
python-version: ${{ matrix.python-version }}
57+
- name: install dependencies
58+
run: |
59+
sudo apt-get update
60+
sudo apt-get dist-upgrade -y
61+
sudo apt-get install -y pandoc
62+
sudo apt-get install -y python3-sphinx
63+
sudo apt-get install -y python3-docutils
4064
- name: documentation
4165
run: |
4266
make documentation
67+
68+
build:
69+
runs-on: ubuntu-latest
70+
strategy:
71+
matrix:
72+
python-version:
73+
- '3.12'
74+
steps:
75+
- uses: actions/checkout@v4
76+
- uses: actions/setup-python@v5
77+
with:
78+
python-version: ${{ matrix.python-version }}
4379
- name: distributions
4480
run: |
4581
make build

0 commit comments

Comments
 (0)