Skip to content

Commit

Permalink
Add github workflow for analytics migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
jjnesbitt committed Aug 31, 2023
1 parent a84f41f commit 4738cbd
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/analytics_migrations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Check Analytics Migrations

on:
pull_request:
paths:
- "analytics/**"

jobs:
check-migrations:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install requirements
run: pip install -r ./analytics/requirements.txt

- name: Provide default env vars for django
run: cat ./analytics/dev/.env.docker-compose >> $GITHUB_ENV

# This runs on pull requests and blocks until any necessary migrations have been created
# *Note*: This will display a warning about not being able to connect to a database. This can be ignored.
- name: Check for Migrations
run: ./analytics/manage.py makemigrations --check --noinput

0 comments on commit 4738cbd

Please sign in to comment.