Skip to content

fix: per-file-ignores for F601 in data/ and fix E741/F841 in data files #30

fix: per-file-ignores for F601 in data/ and fix E741/F841 in data files

fix: per-file-ignores for F601 in data/ and fix E741/F841 in data files #30

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
defaults:
run:
working-directory: backend
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
cache-dependency-path: backend/pyproject.toml
- run: pip install -e ".[dev]"
- run: python -m ruff check glossa_lab tests
- run: python -m ruff format --check glossa_lab tests
typecheck:
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: npm
cache-dependency-path: frontend/package-lock.json
- run: npm ci
- run: npm run build
test:
needs: [lint, typecheck]
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.11", "3.12"]
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: backend
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: backend/pyproject.toml
- run: pip install -e ".[dev]"
- run: python -m pytest
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
cache-dependency-path: backend/pyproject.toml
- run: pip install -e ".[dev]" pip-audit
working-directory: backend
- run: pip-audit
working-directory: backend
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: npm
cache-dependency-path: frontend/package-lock.json
- run: npm audit --audit-level=high
working-directory: frontend