Skip to content

Commit

Permalink
Merge pull request #269 from akrherz/iem_database
Browse files Browse the repository at this point in the history
✨ CI: use iem_database container
  • Loading branch information
akrherz authored Jan 7, 2025
2 parents 4bb32e9 + 2a2cd5a commit 6fc9bd6
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ jobs:
with:
fetch-depth: 0

- 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: Run Memcached container
run: |
docker run -d --name iem_memcached -p 11211:11211 memcached:1.6.9
- name: Add /etc/hosts entries
run: |
sudo cp /etc/hosts /etc/hosts.save
Expand All @@ -42,18 +53,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
- name: Setup Memcached
run: |
. .ci_tooling/memcached.sh
- name: Install and Test
run: |
set -x
Expand All @@ -78,6 +77,7 @@ jobs:
sudo systemctl stop [email protected]
sudo cp /etc/hosts.save /etc/hosts
pywwa-parse-afos-dump --help
pywwa-parse-alaska-marine --help
pywwa-parse-aviation --help
pywwa-parse-bufr-surface --help
pywwa-parse-cf6 --help
Expand Down

0 comments on commit 6fc9bd6

Please sign in to comment.