- FastAPI lifespan (deprecation fix, 0 warnings)
- 28 tests (vues, filtres, tris, APIs, CSRF, CORS, DB)
- CI/CD Gitea Actions (.gitea/workflows/ci.yml)
- Version 1.0.0: main.py, api.py, health endpoint
- CHANGELOG.md v1.0.0
- ARCHITECTURE.md: 12 tables, routes complètes
- ROADMAP: all versions ✅
36 lines
981 B
YAML
36 lines
981 B
YAML
name: FlowDeck CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
container: python:3.12-slim
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install dependencies
|
|
run: pip install -r requirements.txt pytest pytest-cov
|
|
- name: Run tests with coverage
|
|
env:
|
|
GITEA_URL: https://git.dracodev.net
|
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
|
APP_SECRET_KEY: ci-test-key
|
|
run: python -m pytest tests/ -v --tb=short --cov=app --cov-report=term
|
|
- name: Coverage summary
|
|
run: |
|
|
python -m pytest tests/ --cov=app --cov-report=term 2>&1 | tail -20
|
|
|
|
docker:
|
|
runs-on: ubuntu-latest
|
|
needs: test
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Build Docker image
|
|
run: docker build -t flowdeck .
|
|
- name: Verify image
|
|
run: docker run --rm flowdeck python -c "from app.main import app; print('OK')"
|