New causes for the Platform #694
Workflow file for this run
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
# Runs the Pytest test suite when PRs are made against any branch | |
name: Run Pytest via Docker Compose on all PRs | |
on: | |
pull_request: | |
branches: | |
- "*" | |
jobs: | |
build-and-run-pytest-suite-in-docker-compose: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout full code repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # to allow git_context_processor.py to still work | |
- name: Create .env file from repo secrets | |
run: | | |
echo -e "${{ secrets.ENVIRONMENT }}" | base64 -d > envs/.env | |
cat envs/.env | |
- name: Install Docker Compose | |
run: | | |
sudo apt-get install -y docker-compose | |
- name: Show Docker environment info | |
run: | | |
docker compose config | |
- name: Build Docker images and run containers with compose | |
run: | | |
docker compose up -d | |
- name: Run tests | |
run: | | |
docker compose exec django pytest -v | |