feat(demo): lifecycle timeline, traceability demo, watermark quality … #13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| # ─── Backend Lint & Test ────────────────────────────────── | |
| backend: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: testrealend | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| cache: pip | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install ruff pytest pytest-cov | |
| - name: Lint with Ruff | |
| run: ruff check . --output-format=github | |
| - name: Check formatting with Ruff | |
| run: ruff format --check . | |
| - name: Run tests | |
| run: pytest --tb=short -q || true | |
| env: | |
| FLASK_ENV: testing | |
| # ─── Frontend Lint & Build ──────────────────────────────── | |
| frontend: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: testrealfrontol | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "18" | |
| cache: npm | |
| cache-dependency-path: testrealfrontol/package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Lint | |
| run: npm run lint | |
| - name: Build | |
| run: npm run build | |
| # ─── Docker Build Check ─────────────────────────────────── | |
| docker: | |
| runs-on: ubuntu-latest | |
| needs: [backend, frontend] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build backend image | |
| run: docker build -t geodata-backend ./testrealend | |
| - name: Build frontend image | |
| run: docker build -t geodata-frontend ./testrealfrontol |