yukitya-1811 is running Django Tests #326
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: django-tests | |
run-name: ${{ github.actor }} is running Django Tests | |
on: [pull_request] | |
jobs: | |
run-django-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Copy config files | |
run: cp env.example .env | |
- name: Start Containers | |
run: docker compose -f "docker-compose.yml" up -d --build | |
- name: Run Tests | |
run: docker compose -f "docker-compose.yml" exec corpus python manage.py test | |
- name: Stop Containers | |
if: always() | |
run: docker compose -f "docker-compose.yml" down -v |