Skip to content

RBAC: Initial Alembic migration, unified models/services, expanded tests, env and docs #10

RBAC: Initial Alembic migration, unified models/services, expanded tests, env and docs

RBAC: Initial Alembic migration, unified models/services, expanded tests, env and docs #10

Workflow file for this run

name: CI
on:
pull_request:
branches: [ main ]
push:
branches: [ feature/** ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt || true; fi
- name: Prepare env
run: |
cp .env.example .env || true
env:
# Defaults for CI
ENVIRONMENT: testing
- name: Run Alembic migrations
env:
DATABASE_URL: sqlite+aiosqlite:///./test.db
run: |
alembic upgrade head
- name: Run tests
env:
DATABASE_URL: sqlite+aiosqlite:///./test.db
PYTEST_ADDOPTS: "-q"
run: |
pytest