This commit is contained in:
Johan
2026-02-02 14:30:56 +01:00
parent 4cfc50c776
commit 35d6e2ff05
2 changed files with 40 additions and 0 deletions

40
.github/workflows/ci.yml vendored Normal file
View File

@@ -0,0 +1,40 @@
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
backend:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install backend dependencies
run: |
if [ -f backend/requirements.txt ]; then
python -m pip install --upgrade pip
pip install -r backend/requirements.txt
else
echo "No backend/requirements.txt found, skipping install"
fi
- name: Sanity check - compile Python files
run: python -m compileall backend
- name: Run tests if present
run: |
if [ -d backend/tests ]; then
python -m pip install pytest
pytest -q
else
echo "No tests found; skipping pytest"
fi

BIN
enonce-01.pdf Executable file

Binary file not shown.