Skip to content

Feature/procedural space background #39

Feature/procedural space background

Feature/procedural space background #39

Workflow file for this run

name: Backend CI
on:
push:
branches: [main, develop]
paths:
- "backend/**"
pull_request:
branches: [main, develop]
paths:
- "backend/**"
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16-alpine
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: orbital_guardian_test
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
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
cache-dependency-path: backend/requirements-dev.txt
- name: Install dependencies
run: pip install -r requirements-dev.txt
- name: Run tests
env:
PYTHONPATH: .
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/orbital_guardian_test
SECRET_KEY: ci_test_secret_key_not_for_production
ALLOWED_ORIGINS: http://localhost:5173
NASA_DONKI_API_KEY: DEMO_KEY
run: pytest tests/ -v --tb=short