From 3870f51fc88bcfa8bad32619382bb3877757d115 Mon Sep 17 00:00:00 2001 From: Damien Ayers Date: Mon, 2 Dec 2024 14:53:46 +1100 Subject: [PATCH] Try and fix CI DB tests --- .github/workflows/main.yml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 905cc416a..567981525 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -58,7 +58,6 @@ jobs: # Provide the password for postgres env: POSTGRES_PASSWORD: postgres - # POSTGRES_DB: pgintegration # Set health checks to wait until postgres has started options: >- --health-cmd pg_isready @@ -81,6 +80,10 @@ jobs: cache-suffix: 3.12 python-version: 3.12 + - uses: actions/setup-python@v5 + with: + python-version: '3.12' + - name: Config id: cfg run: | @@ -111,11 +114,7 @@ jobs: - name: Run Unit and Doc Tests run: | - echo "Run tests" - uv sync --all-extras source .venv/bin/activate - uv pip install -e ./tests/drivers/fail_drivers --no-deps - uv pip install -e ./examples/io_plugin --no-deps pytest -r a \ --cov datacube \ --cov-report=xml \ @@ -126,23 +125,18 @@ jobs: - name: Run Integration Tests run: | - echo "Run tests" - uv sync --all-extras source .venv/bin/activate - uv pip install -e ./tests/drivers/fail_drivers --no-deps - uv pip install -e ./examples/io_plugin --no-deps pytest -r a \ --cov datacube \ --cov-report=xml \ --doctest-ignore-import-errors \ --durations=5 \ - datacube \ - tests \ integration_tests env: PGHOST: localhost PGUSER: postgres PGPASSWORD: postgres + DB_USERNAME: postgres - name: Build Packages run: |