Skip to content

fix: updated pytest yaml to handle mongo db #91

fix: updated pytest yaml to handle mongo db

fix: updated pytest yaml to handle mongo db #91

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
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

Check failure on line 17 in .github/workflows/pytest.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pytest.yml

Invalid workflow file

You have an error in your yaml syntax on line 17
steps:
- name: Check out repository
uses: actions/checkout@main
with:
ref: main
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@main
with:
python-version: 3.x
- name: Install project and dependencies
run: pip install .
- name: Install additional dependencies
run: |
python -m pip install --upgrade pip
pip install nbconvert pytest pytest-cov
- name: Test with pytest
run: |
pytest --cov=process_bigraph