Updated command to run Django tests #6
Workflow file for this run
This file contains hidden or 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: Build with Docker Compose | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - git_CI/CD | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build Docker Compose services | |
| run: docker compose -f docker/docker-compose.yml build | |
| - name: Run Django tests | |
| run: docker compose -f docker/docker-compose.yml run --rm backend poetry run python src/manage.py test |