Skip to content

Commit

Permalink
feat: Add github actions for django tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dchiller committed Jun 12, 2024
1 parent 3c270d8 commit 9aaa919
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/django_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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

0 comments on commit 9aaa919

Please sign in to comment.