From cadcd81364f7d6dadebc5055ad50c08cb34a7805 Mon Sep 17 00:00:00 2001 From: shun198 Date: Sun, 9 Jun 2024 22:04:07 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=8D=20add=20migration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test-without-model.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test-without-model.yml b/.github/workflows/test-without-model.yml index a68cc76..2cc2c31 100644 --- a/.github/workflows/test-without-model.yml +++ b/.github/workflows/test-without-model.yml @@ -44,7 +44,7 @@ jobs: run: | git fetch origin ${{ github.base_ref }} MODEL_CHANGED=false - if git diff --name-only origin/$BASE_BRANCH ${{ github.sha }} | grep -q "^${{ env.WORKING_DIRECTORY }}/application/models/"; then + if git diff --name-only origin/$BASE_BRANCH ${{ github.sha }} | grep -q "^${{ env.WORKING_DIRECTORY }}/models/"; then MODEL_CHANGED=true fi echo "MODEL_CHANGED=$MODEL_CHANGED" >> $GITHUB_ENV @@ -54,10 +54,10 @@ jobs: uses: ./.github/actions/set-up-poetry with: working-directory: ${{ env.WORKING_DIRECTORY }} - # - name: Run migration - # run: | - # poetry run python manage.py makemigrations - # poetry run python manage.py migrate + - name: Run migration + run: | + poetry run python manage.py makemigrations + poetry run python manage.py migrate - name: Run Pytest Without Model if: env.MODEL_CHANGED == 'true' run: |