Skip to content

Configure github-actions to ensure not have migrations to be created #1839

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

luzfcb
Copy link
Contributor

@luzfcb luzfcb commented Aug 10, 2021

This pull-request adds python manage.py makemigrations --dry-run --check to the github actions configuration to avoid forget to create a migration file when modifying a django model or update a dependency.

--

Pull-request sponsored by

image

Copy link
Contributor

@berinhard berinhard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@luzfcb I think failing tests because migrations are missing can be something annoying under certain scenarios (configuring blank for admin forms, for example), even though having this check is definitely a nice to have. What do you think about, instead of having these tests, adding a call for python manage.py makemigrations --dry-run --check to our CI file?

In my opinion this sounds better because the contributor will still have a warning about the missing migration without having a direct affect on their development workflow.

@luzfcb luzfcb marked this pull request as ready for review August 19, 2021 12:53
@luzfcb luzfcb changed the title Add a test to ensure not have missing migrations Configure Travis-ci to ensure not have migrations to be created Aug 19, 2021
@luzfcb luzfcb mentioned this pull request Aug 21, 2021
@luzfcb luzfcb changed the title Configure Travis-ci to ensure not have migrations to be created Configure github-actions to ensure not have migrations to be created Aug 24, 2021
@luzfcb
Copy link
Contributor Author

luzfcb commented Aug 24, 2021

@berinhard I updated pr to use Github Actions instead of Travis-ci

@ewdurbin
Copy link
Member

Closed by #2248

@ewdurbin ewdurbin closed this Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants