ci: add isolated application build and API checks
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
name: Application checks
|
||||
on: [push, pull_request]
|
||||
permissions:
|
||||
contents: read
|
||||
jobs:
|
||||
application:
|
||||
# Intended for an isolated hosted VM, never a runner sharing production Docker.
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
env:
|
||||
COMPOSE_PROJECT_NAME: ci-lab4-${{ github.run_id }}-${{ github.run_attempt }}
|
||||
PUBLIC_PORT: '8084'
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.12'
|
||||
- run: python -m pip install uv==0.11.7
|
||||
- run: uv sync --locked
|
||||
- run: make up
|
||||
- run: make check validate PYTHON=.venv/bin/python
|
||||
- run: make test student-test
|
||||
- if: always()
|
||||
run: docker compose down --volumes --remove-orphans
|
||||
Reference in New Issue
Block a user