Skip to content

fix: club leadership check to support both Host objects and dictionaries #51

fix: club leadership check to support both Host objects and dictionaries

fix: club leadership check to support both Host objects and dictionaries #51

Workflow file for this run

name: Run tests
on: [ push, pull_request ]
jobs:
test:
name: Run pytest
runs-on: ubuntu-latest
services:
postgres:
image: postgres:17.1
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: test-db
ports:
- 5432:5432
options: >-
--health-cmd="pg_isready -U postgres"
--health-interval=10s
--health-timeout=5s
--health-retries=5
env:
SETTINGS_PATH: settings.test.yaml
steps:
- name: 👾 Check out repository
uses: actions/checkout@v5
- name: 📦 Set up uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
activate-environment: true
- name: 📦 Install the project
run: uv sync
- name: 📦 Run migrations
run: uv run alembic upgrade head
- name: 🧪 Run Tests
run: uv run pytest
- name: 📊 Generate and Check Coverage
run: |
source .venv/bin/activate
# Generate coverage data
uv run pytest --cov=. --cov-report=xml --cov-report=html
# Check coverage threshold
uv run coverage report --fail-under=60
# Show detailed report
uv run coverage report
- name: 📤 Upload Coverage Reports
uses: actions/upload-artifact@v4
with:
name: coverage-reports
path: |
coverage.xml
htmlcov/