From 17891a3b6819f01cbfee523417c71b8d6bbb5305 Mon Sep 17 00:00:00 2001 From: Sarah Withee <2601974+geekygirlsarah@users.noreply.github.com> Date: Mon, 29 Jul 2024 19:10:09 -0400 Subject: [PATCH] Add django migrate command to validate CI/CD commands --- .github/workflows/run-unit-tests.yml | 8 +++++++- .github/workflows/validate-language-info-files.yml | 3 +++ .github/workflows/validate-meta-info-file.yml | 3 +++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run-unit-tests.yml b/.github/workflows/run-unit-tests.yml index b2a8afa59..46b4da23c 100644 --- a/.github/workflows/run-unit-tests.yml +++ b/.github/workflows/run-unit-tests.yml @@ -15,14 +15,20 @@ jobs: steps: - name: Checkout the branch uses: actions/checkout@v4 + - name: Set up Python uses: actions/setup-python@v5 with: python-version: 3.11.4 cache: 'pip' + - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt + + - name: Create SQLite local database + run: python manage.py migrate + - name: Run unit tests - run: python manage.py test \ No newline at end of file + run: python manage.py test diff --git a/.github/workflows/validate-language-info-files.yml b/.github/workflows/validate-language-info-files.yml index dbc20ceb7..ac513a3dc 100644 --- a/.github/workflows/validate-language-info-files.yml +++ b/.github/workflows/validate-language-info-files.yml @@ -28,5 +28,8 @@ jobs: python -m pip install --upgrade pip pip install -r requirements.txt + - name: Create SQLite local database + run: python manage.py migrate + - name: Run validate command run: python manage.py validatelanginfofiles diff --git a/.github/workflows/validate-meta-info-file.yml b/.github/workflows/validate-meta-info-file.yml index 30e8738a7..0a1a80c13 100644 --- a/.github/workflows/validate-meta-info-file.yml +++ b/.github/workflows/validate-meta-info-file.yml @@ -28,5 +28,8 @@ jobs: python -m pip install --upgrade pip pip install -r requirements.txt + - name: Create SQLite local database + run: python manage.py migrate + - name: Run validate command run: python manage.py validatemetainfofile