23 lines
788 B
YAML
23 lines
788 B
YAML
name: Application
|
|
on: [push, pull_request]
|
|
permissions:
|
|
contents: read
|
|
jobs:
|
|
application:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.12'
|
|
- run: python scripts/bootstrap.py
|
|
- run: docker compose --env-file .env up -d --build --wait
|
|
- run: make check test PYTHON=python BASE_URL=http://localhost:18082
|
|
- run: python -m unittest discover -s student-tests -v
|
|
env:
|
|
BASE_URL: http://localhost:18082
|
|
NO_PROXY: localhost,127.0.0.1
|
|
- run: chmod +x scripts/restart.sh && make test-persistence PYTHON=python BASE_URL=http://localhost:18082 ACTION_SCRIPT=scripts/restart.sh
|
|
- if: always()
|
|
run: docker compose down
|