Skip to content

Polyglot

Polyglot #76

Workflow file for this run

name: ci
# PostgreSQL support taken from:
# https://github.com/actions/example-services/blob/master/.github/workflows/postgres-service.yml
on: [push, pull_request]
jobs:
python:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.9"
- "pypy-3.9"
postgres-version:
- "9"
- "latest"
services:
postgres:
image: postgres:${{ matrix.postgres-version }}
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: pq_test
ports:
# will assign a random free host port
- 5432/tcp
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: |
cd python
python -m pip install --upgrade pip setuptools wheel && python setup.py test
env:
PQ_TEST_DB_PORT: ${{ job.services.postgres.ports[5432] }}
PQ_TEST_DB_HOST: localhost
PQ_TEST_DB_PASS: postgres