Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
mvandenburgh committed Nov 14, 2023
1 parent faf8b3d commit aed1ccd
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/analytics_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
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: Install requirements
run: pip install -r requirements.txt

- 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
pytest analytics/tests
env:
DJANGO_SETTINGS_MODULE: settings

0 comments on commit aed1ccd

Please sign in to comment.