Skip to content

Fix column_property #1466

Fix column_property

Fix column_property #1466

Workflow file for this run

---
name: Test Suite
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
tests:
name: "Python ${{ matrix.python-version }}"
runs-on: "ubuntu-latest"
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
services:
postgres:
image: postgres:14-alpine
env:
POSTGRES_USER: username
POSTGRES_PASSWORD: password
POSTGRES_DB: test_db
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: "actions/checkout@v3"
- uses: "actions/setup-python@v4"
with:
python-version: "${{ matrix.python-version }}"
- name: "Install dependencies"
run: pip install hatch
- name: "Run linting checks"
run: hatch run lint:check
- name: "Build package & docs"
run: |
hatch build
hatch run docs:build
- name: "Run tests with SQLite"
env:
TEST_DATABASE_URI_SYNC: "sqlite:///test.db?check_same_thread=False"
TEST_DATABASE_URI_ASYNC: "sqlite+aiosqlite:///test.db?check_same_thread=False"
run: hatch run test:test
- name: "Run tests with PostgreSQL"
env:
TEST_DATABASE_URI_SYNC: "postgresql+psycopg2://username:password@localhost:5432/test_db"
TEST_DATABASE_URI_ASYNC: "postgresql+asyncpg://username:password@localhost:5432/test_db"
run: hatch run test:test
- name: "Enforce coverage"
run: hatch run test:cov
- name: "Upload Coverage"
uses: codecov/codecov-action@v3
with:
files: coverage.xml