Skip to content

Commit

Permalink
Add PG to GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
hugorodgerbrown committed Sep 18, 2023
1 parent 2a3efbb commit 0e0b6c4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,27 @@ jobs:
test:
name: Run tests
runs-on: ubuntu-latest

# run postgres tests on GH
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
strategy:
matrix:
python: ["3.10", "3.11"]
django: ["32", "40", "41", "42", "main"]

env:
DJANGO_SETTINGS_MODULE: tests.settings_postgres
TOXENV: py${{ matrix.python }}-django${{ matrix.django }}

steps:
Expand Down

0 comments on commit 0e0b6c4

Please sign in to comment.