Skip to content

.github/workflows/tests.yml #6

.github/workflows/tests.yml

.github/workflows/tests.yml #6

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / .github/workflows/tests.yml

Invalid workflow file

error parsing called workflow ".github/workflows/tests.yml" -> "./.github/workflows/backend.yml" (source branch with sha:566645c7792898392718441f7ef0cdd5d307ee7e) : workflow is not reusable as it is missing a `on.workflow_call` trigger
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