.github/workflows/tests.yml #6
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: Full Test Suite | ||
| on: | ||
| push: | ||
| branches: [master, develop] | ||
| pull_request: | ||
| branches: [master, develop] | ||
| schedule: | ||
| # Run daily at 2 AM UTC | ||
| - cron: "0 2 * * *" | ||
| jobs: | ||
| frontend: | ||
| uses: ./.github/workflows/frontend.yml | ||
| backend: | ||
| uses: ./.github/workflows/backend.yml | ||
|
Check failure on line 17 in .github/workflows/tests.yml
|
||
| code-quality: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| - name: Set up Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: "20.x" | ||
| cache: "npm" | ||
| - name: Set up Python | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: "3.11" | ||
| cache: "pip" | ||
| - name: Install dependencies | ||
| run: | | ||
| npm ci | ||
| python -m pip install --upgrade pip | ||
| pip install -e services/ai[dev] | ||
| - name: Run frontend linting | ||
| run: npm run lint --workspace=web || true | ||
| - name: Run backend linting | ||
| run: | | ||
| cd services/ai | ||
| flake8 app --max-line-length=100 --exit-zero || true | ||
| security-check: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| - name: Set up Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: "20.x" | ||
| - name: Set up Python | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: "3.11" | ||
| - name: Run npm audit | ||
| run: npm audit --audit-level=moderate || true | ||
| - name: Run pip audit | ||
| run: | | ||
| pip install pip-audit | ||
| pip-audit || true | ||