From e9ac817256611e103d5dd5e53b2dce265d037339 Mon Sep 17 00:00:00 2001 From: Bee Webb Date: Tue, 21 Jan 2025 18:15:26 +0000 Subject: [PATCH] wip fix CI --- .github/workflows/ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index db38879c0..af8913f45 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,6 +3,13 @@ on: [push, pull_request] jobs: ci: runs-on: ubuntu-latest + services: + postgres: + image: postgres:latest + ports: + - 5432:5432 + # needed because the postgres container does not provide a healthcheck + options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 steps: - uses: actions/checkout@v3 - name: Set up Python 3.12 @@ -33,6 +40,8 @@ jobs: mkdir out ./mock_stats_for_unit_tests.sh - name: Run tests + env: + DATABASE_URL: "postgres://postgres@localhost:5432/test_database_name" run: pytest --cov . # - name: Coveralls # run: coveralls --service=github-actions