Skip to content

Releases 0.8.2 with fix for uninitialised job variable #21

Releases 0.8.2 with fix for uninitialised job variable

Releases 0.8.2 with fix for uninitialised job variable #21

Workflow file for this run

---
name: Tests
on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
# Service containers to run with `container-job`
services:
# Label used to access the service container
postgres:
# Docker Hub image
image: postgres
# Provide the password for postgres
env:
POSTGRES_USER: pgq
POSTGRES_PASSWORD: pgq
POSTGRES_DB: pgq_testproj
TZ: UTC
PGTZ: UTC
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
# Maps tcp port 5432 on service container to the host
- 5432:5432
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: psycopg2 prerequisites
run: sudo apt-get install libpq-dev
- name: Install dependencies
run: |
python -m pip install --upgrade pip tox tox-factor
- name: Run tox targets for ${{ matrix.python-version }}
run: |
PYVERSION=$(python -c "import sys; print(''.join([str(sys.version_info.major), str(sys.version_info.minor)]))")
python -m tox -f "py${PYVERSION}"