Skip to content

Commit f66f03b

Browse files
Update CI to test both full and core installations
1 parent 623a068 commit f66f03b

File tree

1 file changed

+40
-3
lines changed

1 file changed

+40
-3
lines changed

.github/workflows/system.yml

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ on:
66
branches: [main]
77

88
jobs:
9-
system:
9+
system-full:
10+
name: Test Full Installation
1011
runs-on: ubuntu-latest
1112
steps:
1213
- uses: actions/checkout@v3
@@ -16,8 +17,8 @@ jobs:
1617
run: uv venv --python 3.12
1718
- name: Set up Docker
1819
uses: docker/setup-buildx-action@v3
19-
- name: Install the project
20-
run: uv sync
20+
- name: Install the project (full)
21+
run: uv pip install -e .
2122
- name: Set up commit0
2223
run: uv run commit0 setup simpy
2324
- name: Build docker images
@@ -45,3 +46,39 @@ jobs:
4546
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
4647
run: |
4748
uv run commit0 save test-save-commit0 master
49+
50+
system-core:
51+
name: Test Core Installation
52+
runs-on: ubuntu-latest
53+
steps:
54+
- uses: actions/checkout@v3
55+
- name: Install uv
56+
uses: astral-sh/setup-uv@v2
57+
- name: Set up Python
58+
run: uv venv --python 3.12
59+
- name: Set up Docker
60+
uses: docker/setup-buildx-action@v3
61+
- name: Install the project (core)
62+
run: uv pip install -e .[core]
63+
- name: Set up commit0
64+
run: uv run commit0-core setup simpy
65+
- name: Build docker images
66+
run: uv run commit0-core build
67+
- name: Get tests
68+
run: uv run commit0-core get-tests simpy
69+
- name: Test
70+
env:
71+
MODAL_TOKEN_ID: ${{secrets.MODAL_TOKEN_ID}}
72+
MODAL_TOKEN_SECRET: ${{secrets.MODAL_TOKEN_SECRET}}
73+
run: |
74+
uv run commit0-core test simpy tests/test_event.py::test_succeed --reference --rebuild
75+
uv run commit0-core test simpy tests/test_event.py::test_succeed --reference
76+
- name: Evaluate
77+
env:
78+
MODAL_TOKEN_ID: ${{secrets.MODAL_TOKEN_ID}}
79+
MODAL_TOKEN_SECRET: ${{secrets.MODAL_TOKEN_SECRET}}
80+
run: |
81+
uv run commit0-core evaluate --reference --rebuild
82+
uv run commit0-core evaluate --reference
83+
- name: Lint
84+
run: uv run commit0-core lint commit0/harness/

0 commit comments

Comments
 (0)