Skip to content

7.1 Updates

7.1 Updates #224

Workflow file for this run

name: Django CI
on:
pull_request:
branches: [main]
defaults:
run:
working-directory: backend
jobs:
build:
runs-on: ubuntu-latest
container: python:3.10
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install coverage
- name: Run Tests
run: |
mv backend/test_settings.py backend/settings.py
coverage run --include='api/*' manage.py test
coverage report