Skip to content

FE: make API base configurable at build time (default /api) #14

FE: make API base configurable at build time (default /api)

FE: make API base configurable at build time (default /api) #14

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
services:
db:
image: postgres:16-alpine
env:
POSTGRES_DB: meteorpointer
POSTGRES_USER: meteorpointer
POSTGRES_PASSWORD: meteorpointer
ports:
- 5432:5432
options: >-
--health-cmd "pg_isready -U meteorpointer"
--health-interval 5s --health-timeout 5s --health-retries 10
env:
POSTGRES_HOST: localhost
POSTGRES_DB: meteorpointer
POSTGRES_USER: meteorpointer
POSTGRES_PASSWORD: meteorpointer
DJANGO_SECRET_KEY: ci-secret
JWT_SECRET: ci-jwt-secret
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: pip install -r backend/requirements.txt
- name: Ruff
run: ruff check backend
- name: Pytest
working-directory: backend
run: pytest