Skip to content

feat: type annotations and update to psycopg3 #60

feat: type annotations and update to psycopg3

feat: type annotations and update to psycopg3 #60

Workflow file for this run

name: test
on: push
jobs:
pytest:
name: Test (pytest)
strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9"]
runs-on: ubuntu-latest
container: python:${{ matrix.python-version }}
services:
postgres:
image: postgres
env:
POSTGRES_USER: rawl
POSTGRES_PASSWORD: s3cretpass
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.dev.txt
if [ -f requirements.txt ]; then
pip install -r requirements.txt
else
pip install -e .
fi
- name: Run pytest
run: pytest
env:
PG_DSN: postgresql://rawl:s3cretpass@postgres:5432/postgres
RAWL_DSN: postgresql://rawl:s3cretpass@postgres:5432/rawl_test