Skip to content

Commit

Permalink
fix: updated pytest yaml to handle mongo db
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPatrie authored Dec 16, 2023
1 parent 800183b commit dc3b7a2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ on:
jobs:
run-tests:
runs-on: ubuntu-latest
services:
mongodb:
image: mongo
ports:
- 27017:27017
options: --health-cmd "mongo --eval 'db.runCommand({ ping: 1 })'" --health-interval 10s --health-timeout 5s --health-retries 5

steps:
- name: Check out repository
uses: actions/checkout@main
Expand Down

0 comments on commit dc3b7a2

Please sign in to comment.