test #6
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
name: Analytics CI | |
on: | |
push: | |
branches: [test-gh-action] | |
pull_request: | |
paths: | |
- "analytics/**" | |
jobs: | |
check-migrations: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: analytics/ | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: Provide default env vars for django | |
run: cat dev/.env.docker-compose >> $GITHUB_ENV | |
- name: Run tests | |
run: | | |
source dev/.env.docker-compose | |
docker compose up -d | |
pip install -r requirements.txt | |
pytest analytics/tests | |
env: | |
DJANGO_SETTINGS_MODULE: settings |