Skip to content

Add GitHub action to run tests; fix erroring test for ChantEditSyllabificationView #1

Add GitHub action to run tests; fix erroring test for ChantEditSyllabificationView

Add GitHub action to run tests; fix erroring test for ChantEditSyllabificationView #1

Workflow file for this run

name: django-tests
on:
pull_request:
types: [opened, synchronize]
jobs:
run-tests:
runs-on: ubuntu-latest
env:
POSTGRES_DB: test_cantusdb
POSTGRES_USER: test_user
POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
PROJECT_ENVIRONMENT: PRODUCTION
CANTUSDB_STATIC_ROOT: /some/path
CANTUSDB_MEDIA_ROOT: /some/path
CANTUSDB_HOST: somehost
CANTUSDB_SECRET_KEY: "hereisakey1234"
POSTGRES_PASSWORD: woahagreatpasswordabc
AWS_EMAIL_HOST_USER: test_user
AWS_EMAIL_HOST_PASSWORD: test_password
steps:
- uses: actions/checkout@v3
- run: docker compose -f docker-compose-development.yml build
- run: docker compose -f docker-compose-development.yml up -d
- run: docker compose -f docker-compose-development.yml exec -T django python manage.py test main_app.tests