GitHub actions for build pipeline #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: system | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
pre-commit: | |
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 | |
- name: Clone | |
run: uv run commit0 clone | |
- name: Setup | |
run: uv run commit0 build | |
- name: Test | |
run: uv run commit0 test | |