Skip to content

Merge remote-tracking branch 'refs/remotes/origin/main' #12

Merge remote-tracking branch 'refs/remotes/origin/main'

Merge remote-tracking branch 'refs/remotes/origin/main' #12

Workflow file for this run

name: run tests
on:
pull_request:
paths:
- '**.py'
- '**.toml'
- '**.lock'
push:
paths:
- '**.py'
- '**.toml'
- '**.lock'
- '**.yaml'
branches:
- main
jobs:
run-tests:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16-alpine
env:
POSTGRES_DB: example
POSTGRES_USER: example
POSTGRES_PASSWORD: example
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
- name: Setup PDM
uses: pdm-project/setup-pdm@v4
with:
python-version: '3.10'
- name: Install dependencies
run: pdm install -dG test
- name: Add environment variables
run: cp .env.example .env
- name: Run tests
run: pdm run pytest --cov=src