Skip to content

Commit

Permalink
✨ CI: use iem_database test container
Browse files Browse the repository at this point in the history
  • Loading branch information
akrherz committed Jan 7, 2025
1 parent 8393a48 commit 797a5ac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ jobs:
# we need a reasonable depth so that the most recent tag is available
fetch-depth: 500

- name: Run IEM Database container
run: |
docker run -d --name iem_database -p 5432:5432 ghcr.io/akrherz/iem_database:test_data
until docker exec iem_database pg_isready -h localhost; do
sleep 6
done
- name: Add /etc/hosts entries
run: |
cat .github/workflows/etchosts.txt | sudo tee -a /etc/hosts
Expand All @@ -44,16 +51,6 @@ jobs:
environment-name: prod
cache-environment: true

- name: Setup Postgres
run: |
git clone --depth 1 https://github.com/akrherz/iem-database.git database
git clone --depth 1 https://github.com/akrherz/ci_tooling.git .ci_tooling
. .ci_tooling/postgres.sh
cd database; sh bootstrap.sh
python schema_manager.py
python store_test_data.py $(which psql)
psql -f data/postgis/cwsu.db -U mesonet postgis
- name: Setup Memcached
run: |
. .ci_tooling/memcached.sh
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ All notable changes to this library are documented in this file.

- Add `nwsice` color ramp per suggestion.
- Retain reference to `CGIModel` schema as `environ["_cgimodel_schema"]`.
- Use `akrherz/iem_database:test_data` container for integration tests.

### Bug Fixes

Expand Down

0 comments on commit 797a5ac

Please sign in to comment.