Improve job processing and app shell behavior #1
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: test-coverage | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| verify: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: npm | |
| cache-dependency-path: src/frontend/package-lock.json | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Sync backend dependencies | |
| run: uv sync --project src/backend --extra dev | |
| - name: Install frontend dependencies | |
| run: npm ci --workspaces=false | |
| working-directory: src/frontend | |
| - name: Run backend coverage | |
| run: uv run --project src/backend pytest --cov=src/backend --cov-report=xml | |
| - name: Run frontend coverage | |
| run: npm run coverage --workspaces=false | |
| working-directory: src/frontend | |
| - name: Upload backend coverage | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: backend-coverage | |
| path: coverage.xml | |
| - name: Upload frontend coverage | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: frontend-coverage | |
| path: src/frontend/coverage |