ci: fix makemigrations echo during pr checks + build
This commit is contained in:
parent
5598762608
commit
3606dbef38
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
|
@ -130,7 +130,8 @@ jobs:
|
|||
./ietf/manage.py check
|
||||
echo "Validating migrations..."
|
||||
if ! (ietf/manage.py makemigrations 2>&1 | grep -q "^No changes detected$") ; then
|
||||
echo -e "\nModel changes without migrations found." ; exit 1
|
||||
echo "Model changes without migrations found."
|
||||
exit 1
|
||||
fi
|
||||
echo "Running tests..."
|
||||
./ietf/manage.py test --settings=settings_sqlitetest
|
||||
|
|
3
.github/workflows/ci-run-tests.yml
vendored
3
.github/workflows/ci-run-tests.yml
vendored
|
@ -42,7 +42,8 @@ jobs:
|
|||
./ietf/manage.py check
|
||||
echo "Validating migrations..."
|
||||
if ! (ietf/manage.py makemigrations 2>&1 | grep -q "^No changes detected$") ; then
|
||||
echo -e "\nModel changes without migrations found." ; exit 1
|
||||
echo "Model changes without migrations found."
|
||||
exit 1
|
||||
fi
|
||||
echo "Running tests..."
|
||||
./ietf/manage.py test --settings=settings_sqlitetest
|
||||
|
|
Loading…
Reference in a new issue