Refactors the entire backend to rely on an adapter class #25
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit tests | |
on: | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
env: | |
MB__BATCH_SIZE: 10_000 | |
MB__BACKEND_TYPE: postgres | |
MB__DATASETS_CONFIG: datasets.toml | |
# PostgreSQL backend settings | |
MB__POSTGRES__HOST: localhost | |
MB__POSTGRES__PORT: 5432 | |
MB__POSTGRES__USER: matchbox_user | |
MB__POSTGRES__PASSWORD: matchbox_password | |
MB__POSTGRES__DATABASE: matchbox | |
MB__POSTGRES__DB_SCHEMA: mb | |
jobs: | |
uv-example: | |
name: python | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v2 | |
- name: Set up Python | |
run: uv python install | |
- name: Install the project | |
run: uv sync --all-extras --dev | |
- name: Set up PostgreSQL | |
run: | | |
docker compose up -d --wait | |
- name: Run pytest | |
run: | | |
uv run pytest | |
- name: Dump docker logs | |
if: failure() | |
uses: jwalton/gh-docker-logs@v2 |