Merge pull request #38 from d3mocide/claude/code-review-XIcGN #76
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: Tests | |
| on: | |
| push: | |
| branches: [main, "claude/**"] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| poller-tests: | |
| name: Poller unit tests | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: poller | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| cache: pip | |
| - name: Install dependencies | |
| run: pip install -r requirements.txt pytest pytest-asyncio | |
| - name: Run tests | |
| run: pytest tests/ -v --tb=short | |
| backend-tests: | |
| name: Backend unit tests | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: backend | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| cache: pip | |
| - name: Install dependencies | |
| run: pip install -r requirements.txt pytest pytest-asyncio httpx | |
| - name: Run tests | |
| run: pytest tests/ -v --tb=short | |
| frontend-typecheck: | |
| name: Frontend TypeScript check | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: frontend | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - 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 dependencies | |
| run: npm ci | |
| - name: TypeScript type check | |
| run: npx tsc --noEmit |