|
6 | 6 | branches: [main] |
7 | 7 |
|
8 | 8 | jobs: |
9 | | - system: |
| 9 | + system-full: |
| 10 | + name: Test Full Installation |
10 | 11 | runs-on: ubuntu-latest |
11 | 12 | steps: |
12 | 13 | - uses: actions/checkout@v3 |
|
16 | 17 | run: uv venv --python 3.12 |
17 | 18 | - name: Set up Docker |
18 | 19 | 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 . |
21 | 22 | - name: Set up commit0 |
22 | 23 | run: uv run commit0 setup simpy |
23 | 24 | - name: Build docker images |
|
45 | 46 | GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }} |
46 | 47 | run: | |
47 | 48 | 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