Skip to content

Commit

Permalink
wip fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjwebb committed Jan 21, 2025
1 parent d016195 commit e9ac817
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e9ac817

Please sign in to comment.