Skip to content

Commit

Permalink
Try and fix CI DB tests
Browse files Browse the repository at this point in the history
  • Loading branch information
omad committed Dec 2, 2024
1 parent 8e34a41 commit 3870f51
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand Down Expand Up @@ -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 \
Expand All @@ -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: |
Expand Down

0 comments on commit 3870f51

Please sign in to comment.