Skip to content

Commit

Permalink
Add postgres server to github action
Browse files Browse the repository at this point in the history
  • Loading branch information
funkey committed Nov 17, 2023
1 parent 50ff8ca commit b1f2f4f
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,27 @@ on:
jobs:
test:
runs-on: ubuntu-latest

services:
postgres:
image: postgres
env:
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10"]
mongodb-version: ["5.0", "6.0"]

env:
PGUSER: postgres

steps:
- uses: actions/checkout@v2
Expand All @@ -20,11 +36,6 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: ${{ matrix.mongodb-version }}

- name: Install dependencies
run: pip install ".[dev]"

Expand Down

0 comments on commit b1f2f4f

Please sign in to comment.