Skip to content

flag to test using sqlalchemy or alembic for db init #1405

flag to test using sqlalchemy or alembic for db init

flag to test using sqlalchemy or alembic for db init #1405

Workflow file for this run

---
name: Run Tests
on:
push:
pull_request:
branches:
- main
jobs:
run-lint-and-tests:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16.4-alpine3.20
env:
POSTGRES_USER: hushline
POSTGRES_PASSWORD: hushline
POSTGRES_DB: hushline
steps:
- uses: actions/checkout@v4
- name: Install Poetry
run: pipx install poetry
- uses: actions/setup-python@v4
with:
python-version: "3.12"
cache: "poetry"
- uses: actions/setup-node@v4
with:
node-version: 22
cache: "npm"
- name: Install Python dependencies
run: poetry install
- name: Install Node dependencies
run: npm install
- name: Lint
run: poetry run make lint
- name: Test
run: make test
- name: Test with alembic
run: make test
env:
PYTEST_ADDOPTS: '--alembic'