Skip to content

Merge pull request #25 from praekeltfoundation/docker_image_replacement #29

Merge pull request #25 from praekeltfoundation/docker_image_replacement

Merge pull request #25 from praekeltfoundation/docker_image_replacement #29

Workflow file for this run

name: Run tests
on:
push
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
postgres_version: ['14','16']
services:
postgres:
image: postgres:${{ matrix.postgres_version }}
env:
POSTGRES_DB: reminder_scheduler
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
env:
DATABASE_URL: postgres://postgres:postgres@localhost/reminder_scheduler
steps:
- uses: actions/checkout@v3
- uses: actions/[email protected]
with:
python-version: '3.9'
cache: 'pip'
- name: Install dependancies
run: pip install -r requirements.txt -r requirements-dev.txt
- name: Run tests
run: |
python manage.py makemigrations --check
pytest