Merge pull request #78 from i-dot-ai/feature/REDBOX-54-test-ingest-app #72
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 | |
env: | |
DOCKER_BUILDKIT: 1 | |
on: | |
push: | |
paths: | |
- django_app/** | |
- Makefile | |
- .github/** | |
branches: | |
- 'main' | |
- 'feature/**' | |
- 'chore/**' | |
- 'bugfix/**' | |
- 'hotfix/**' | |
- 'develop' | |
workflow_dispatch: | |
jobs: | |
check_migrations: | |
name: Check migrations | |
runs-on: ubuntu-latest | |
environment: release | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Copy env file | |
run: | | |
cp .env.example .env | |
- name: Run migrations | |
run: | | |
make check-migrations | |
run_tests: | |
name: Run tests | |
runs-on: ubuntu-latest | |
environment: release | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Copy env file | |
run: | | |
cp .env.example .env | |
- name: Run tests | |
run: | | |
make test-django |