Skip to content

ci fixed

ci fixed #5

Workflow file for this run

# .github/workflows/python-app.yml
name: Python application CI
on: [push, pull_request]
jobs:
build:
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:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8' # Choose the Python version you need
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
# If your tests require the database to be in a certain state, add steps here
- name: Run tests
env:
MONGO_URI: mongodb://localhost:27017/test_db # replace 'test_db' with your database name
run: |
python -m pytest tests