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 ff31a09
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,22 @@ on:
jobs:
test:
runs-on: ubuntu-latest

services:
postgres:
image: postgres
env:
POSTGRES_HOST_AUTH_METHOD: trust
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"]

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

- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.8.0
with:
mongodb-version: ${{ matrix.mongodb-version }}

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

Expand Down

0 comments on commit ff31a09

Please sign in to comment.