Skip to content

Update testing workflow to use Debian base image #18

Update testing workflow to use Debian base image

Update testing workflow to use Debian base image #18

Workflow file for this run

name: Testing
on:
pull_request:
push:
branches: ["*"]
paths-ignore:
- 'docs/**'
- '*.md'
- '*.rst'
tags-ignore: ["*"]
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:${{ matrix.postgres }}
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432
strategy:
fail-fast: true
matrix:
python: ["3.11"] #, "3.12", "3.13"]
postgres: [14] #, 15, 16, 17]
container:
image: python:${{ matrix.python }}
env:
NOBOOTSTRAP: true
POSTGRES_URI: postgresql://postgres@postgres:5432/postgres
steps:
- name: Checkout repository
uses: actions/checkout@v1
- name: Setup environment
run: apt-get update && apt-get install -y bash cargo gcc git libffi-dev libpq-dev build-essential postgresql postgresql-server-dev-14 rustc tzdata
- name: Install testing dependencies
run: pip3 install -e '.[dev]'
- name: Setup test/fixture data
run: ci/test-setup
- name: Run tests
run: ci/test
- name: Upload Coverage
uses: codecov/codecov-action@v1
with:
file: build/coverage.xml