diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b5f8c42..bb3b62c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -9,7 +9,23 @@ jobs: run_tests: runs-on: ubuntu-latest container: - image: qgis/qgis:3.34 + image: postgis/postgis:15-3.4 + services: + postgres: + image: postgres + env: + POSTGRES_DB: my_database + POSTGRES_PASSWORD: postgres + POSTGRES_USER: postgres + # Set health checks to wait until postgres has started + options: >- + --health-cmd pg_isready + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + - 5432:5432 + steps: - uses: actions/checkout@v4 - name: install system dependencies