master: bump version 2024.4 -> 2024.5 #128
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: "" | |