build(deps): bump docker/build-push-action from eb539f44b153603ccbfbd98e2ab9d4d0dcaf23a4 to 5cd11c3a4ced054e52742c5fd54dca954e0edd85 #145
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: pre-commit + migration check | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- uses: pre-commit/[email protected] | |
migrations: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
cache: "pipenv" | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pipenv | |
pipenv sync | |
- name: Test for missing migrations | |
run: pipenv run python manage.py makemigrations --check | |
env: | |
DEBUG: True | |
DATABASE_URL: "sqlite://:memory:" | |
TROJSTEN_LOGIN_CLIENT: "" | |
TROJSTEN_LOGIN_SECRET: "" | |
RECAPTCHA_PUBLIC: "" | |
RECAPTCHA_PRIVATE: "" | |
OIDC_KEY: "" | |