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')"