Skip to content

Feature/sha256

Feature/sha256 #34

Workflow file for this run

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:
run-unit-tests:
name: tests
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