-
Notifications
You must be signed in to change notification settings - Fork 10
47 lines (45 loc) · 1.42 KB
/
system.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: system
on:
pull_request:
push:
branches: [main]
jobs:
system:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install uv
uses: astral-sh/setup-uv@v2
- name: Set up Python
run: uv venv --python 3.12
- name: Set up Docker
uses: docker/setup-buildx-action@v3
- name: Install the project
run: uv sync --extra agent
- name: Set up commit0
run: uv run commit0 setup simpy
- name: Build docker images
run: uv run commit0 build
- name: Get tests
run: uv run commit0 get-tests simpy
- name: Test
env:
MODAL_TOKEN_ID: ${{secrets.MODAL_TOKEN_ID}}
MODAL_TOKEN_SECRET: ${{secrets.MODAL_TOKEN_SECRET}}
run: |
uv run commit0 test simpy tests/test_event.py::test_succeed --reference --rebuild
uv run commit0 test simpy tests/test_event.py::test_succeed --reference
- name: Evaluate
env:
MODAL_TOKEN_ID: ${{secrets.MODAL_TOKEN_ID}}
MODAL_TOKEN_SECRET: ${{secrets.MODAL_TOKEN_SECRET}}
run: |
uv run commit0 evaluate --reference --rebuild
uv run commit0 evaluate --reference
- name: Lint
run: uv run commit0 lint commit0/harness/
- name: Save
env:
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
run: |
uv run commit0 save test-save-commit0 master