feat(ci): add minimal GitHub workflow and document template structure #1
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: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-and-check: | |
| runs-on: ubuntu-latest | |
| env: | |
| DOCKER_PLATFORM: linux/amd64 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Set up Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build dev and app images | |
| run: docker compose build dev app | |
| - name: Ruff lint | |
| run: docker compose run --rm dev ruff check . | |
| - name: Ruff format check | |
| run: docker compose run --rm dev ruff format --check . | |
| - name: Run tests | |
| run: docker compose run --rm dev pytest -q |