Skip to content

Commit 8681619

Browse files
Split CI workflow into guard, test, and build jobs
Co-authored-by: Shri Sukhani <shrisukhani@users.noreply.github.com>
1 parent c0b97a5 commit 8681619

1 file changed

Lines changed: 47 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 47 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,32 @@ on:
99
- "cursor/**"
1010

1111
jobs:
12-
lint-test-build:
12+
architecture-guards:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: "3.12"
23+
cache: pip
24+
cache-dependency-path: |
25+
pyproject.toml
26+
poetry.lock
27+
28+
- name: Install dependencies
29+
run: |
30+
python3 -m pip install --upgrade pip
31+
make install
32+
33+
- name: Architecture guard checks
34+
run: make architecture-check
35+
36+
lint-test:
37+
needs: architecture-guards
1338
runs-on: ubuntu-latest
1439
strategy:
1540
fail-fast: false
@@ -43,11 +68,29 @@ jobs:
4368
- name: Compile sources
4469
run: make compile
4570

46-
- name: Architecture guard checks
47-
run: make architecture-check
48-
4971
- name: Test
5072
run: make test
5173

74+
build:
75+
needs: lint-test
76+
runs-on: ubuntu-latest
77+
steps:
78+
- name: Checkout
79+
uses: actions/checkout@v4
80+
81+
- name: Set up Python
82+
uses: actions/setup-python@v5
83+
with:
84+
python-version: "3.12"
85+
cache: pip
86+
cache-dependency-path: |
87+
pyproject.toml
88+
poetry.lock
89+
90+
- name: Install dependencies
91+
run: |
92+
python3 -m pip install --upgrade pip
93+
make install
94+
5295
- name: Build package
5396
run: make build

0 commit comments

Comments
 (0)