Upgrade CI to check latest postgres/postgis matrices #94
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run tests | ||
on: | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
- '*' | ||
pull_request: | ||
branches: | ||
- master | ||
release: | ||
types: ['prereleased', 'released'] | ||
jobs: | ||
run-tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
postgis: | ||
- postgis/postgis:12-3.2 | ||
- postgis/postgis:15-3.4 | ||
- postgis/postgis:16-3.4 | ||
env: | ||
POSTGRES_DB: qwat_test | ||
POSTGRES_PASSWORD: postgres | ||
ports: | ||
- 5432:5432 | ||
env: | ||
PGSERVICEFILE: ${{github.workspace}}/tests/pg_service.conf | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python 3.12 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.12 | ||
- name: Install Python dependencies | ||
run: pip install -r requirements.txt | ||
- name: Run tests | ||
run: tests/tests.sh | ||
- name: Run scalability tests | ||
run: tests/tests_scalability.sh -i 20 | ||
- name: Run scalability tests multithreaded | ||
run: tests/tests_scalability_multithread.sh -i 20 | ||
- name: Run upgrade tests | ||
run: tests/tests_upgrade.sh |