feat: add task cancellation, action log redesign and progress indicator #21
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: | |
| lint-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: | | |
| cd backend | |
| pip install -r requirements-dev.txt | |
| - name: Lint with ruff | |
| run: | | |
| cd backend | |
| ruff check . | |
| - name: Run tests | |
| run: | | |
| cd backend | |
| pytest tests/ -v --tb=short | |
| frontend-lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| - name: Install dependencies | |
| run: | | |
| cd frontend | |
| npm install | |
| - name: Type check | |
| run: | | |
| cd frontend | |
| npx tsc --noEmit |