From 2a2cd5a43e28bbb01502ba0767d4bea73839cdd1 Mon Sep 17 00:00:00 2001 From: akrherz Date: Tue, 7 Jan 2025 12:55:03 -0600 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20CI:=20use=20iem=5Fdatabase=20contai?= =?UTF-8?q?ner?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a9b8d619..8e8d2931 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -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 @@ -78,6 +77,7 @@ jobs: sudo systemctl stop postgresql@15-main.service 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