From 879bedb2c96deb6407ddc36066a4e35580c47f2a Mon Sep 17 00:00:00 2001 From: Jennifer Richards Date: Mon, 31 Oct 2022 14:25:52 -0300 Subject: [PATCH] ci: do the USE_TZ migration dance for feat/tzaware tests (#4680) --- .github/workflows/ci-run-tests.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci-run-tests.yml b/.github/workflows/ci-run-tests.yml index bb1ee7783..b967209f6 100644 --- a/.github/workflows/ci-run-tests.yml +++ b/.github/workflows/ci-run-tests.yml @@ -43,6 +43,10 @@ jobs: run: | echo "Running checks..." ./ietf/manage.py check + echo "Running migrations with USE_TZ=False..." + ./ietf/manage.py migrate || true + echo "USE_TZ = True" >> ./ietf/settings_local.py + echo "Running migrations with USE_TZ=True..." ./ietf/manage.py migrate echo "Validating migrations..." if ! ( ietf/manage.py makemigrations --dry-run --check --verbosity 3 ) ; then