add warning for leaks #104
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: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| cache: 'pip' | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| cache-dependency-path: frontend/package-lock.json | |
| - name: Install Python dependencies | |
| run: | | |
| pip install -r requirements.txt | |
| pip install -e . | |
| - name: Install frontend dependencies | |
| run: cd frontend && npm ci | |
| - name: Lint Python | |
| run: ruff check kernelboard/ tests/ | |
| - name: Lint frontend | |
| run: cd frontend && npm run lint | |
| - name: Run Python tests | |
| run: pytest --tb=short | |
| continue-on-error: true | |
| - name: Run frontend tests | |
| run: cd frontend && npm test -- --run | |
| continue-on-error: true | |
| - name: Build frontend | |
| run: cd frontend && npm run build | |
| - name: Check build artifacts | |
| run: | | |
| if [ -d "kernelboard/static/app" ]; then | |
| echo "✅ Frontend build successful" | |
| ls -la kernelboard/static/app | |
| else | |
| echo "❌ Frontend build failed - no output directory" | |
| exit 1 | |
| fi |