NinjainPJs's picture
Fix CI — add dummy GROQ_API_KEY for test environment
46e55d0
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint-and-test:
runs-on: ubuntu-latest
env:
# Dummy keys for CI — tests never call real APIs, but ChatGroq
# constructor requires the env var to exist
GROQ_API_KEY: "gsk_dummy_ci_key_not_real"
ENVIRONMENT: "testing"
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: pip install -r requirements-dev.txt
- name: Lint with ruff
run: ruff check app/ tests/
- name: Type check with mypy
run: mypy app/ --ignore-missing-imports
continue-on-error: true
- name: Run tests
run: pytest tests/ -v --tb=short