Skip to content

Commit

Permalink
✨ CI: use iem_database container
Browse files Browse the repository at this point in the history
  • Loading branch information
akrherz committed Jan 7, 2025
1 parent 0ee6fdc commit b342358
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/pydep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@ jobs:
steps:
- uses: actions/checkout@v4

- 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: |
cat .github/workflows/etchosts.txt | sudo tee -a /etc/hosts
Expand Down Expand Up @@ -49,25 +60,12 @@ jobs:
- name: Setup data
run: sh .github/setupdata.sh

- 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: Build and test
run: |
python -m pip install . --upgrade --no-deps
python -m pytest --cov=pydep tests
python -m coverage xml
- name: Upload codecov
if: ${{ env.PYTHON_VERSION == '3.12' }}
uses: codecov/codecov-action@v4
Expand Down

0 comments on commit b342358

Please sign in to comment.