Phase 18 plan execution: pipeline scoring fixes and unit tests #22
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: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| test: | |
| name: Run tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.11 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: pip install -r requirements-core.txt | |
| - name: Run tests | |
| run: python -m pytest tests/ -m "not network" -v --tb=short | |
| - name: Verify OpenAPI spec is up to date | |
| run: | | |
| make spec | |
| if ! git diff --exit-code docs/api/openapi.json; then | |
| echo "" | |
| echo "ERROR: docs/api/openapi.json is out of date." | |
| echo "Run 'make spec' locally and commit the updated file." | |
| exit 1 | |
| fi | |
| docker-build: | |
| name: Docker build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Bootstrap (certs + init.sql) | |
| run: make bootstrap | |
| - name: Build Docker images | |
| run: docker-compose build |