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

services:
postgres:
image: postgres
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 +29,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 fc65624

Please sign in to comment.