Skip to content

feat: first approach for library #4

feat: first approach for library

feat: first approach for library #4

Workflow file for this run

name: Tests
on:
push:
branches: [ main ]
paths-ignore:
- 'docs/**'
- '*.md'
pull_request:
branches: [ main ]
paths-ignore:
- 'docs/**'
- '*.md'
permissions:
actions: read
contents: read
pull-requests: read
jobs:
test:
name: Tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.12", "3.13" ]
fail-fast: false
services:
postgres:
image: postgres:16-alpine
env:
POSTGRES_DB: knobs_example
POSTGRES_USER: knobs
POSTGRES_PASSWORD: knobs
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false
- id: setup-uv
uses: astral-sh/setup-uv@3259c6206f993105e3a61b142c2d97bf4b9ef83d # v7.1.0
with:
enable-cache: true
cache-suffix: ${{ matrix.python-version }}
version: "latest"
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: uv sync --all-extras
- name: Run tests
run: uv run pytest