From 1d22b89ed6fe3229848880320dd2337659c13656 Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 26 Dec 2024 23:43:49 +1100 Subject: [PATCH] DB CI Checks (#8773) * Update test databases in CI * Add new target --- .github/workflows/qc_checks.yaml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/qc_checks.yaml b/.github/workflows/qc_checks.yaml index a0c737f551f1..bcf585be542b 100644 --- a/.github/workflows/qc_checks.yaml +++ b/.github/workflows/qc_checks.yaml @@ -480,12 +480,6 @@ jobs: - name: Fetch Database run: git clone --depth 1 https://github.com/inventree/test-db ./test-db - - name: Latest Database - run: | - cp test-db/latest.sqlite3 /home/runner/work/InvenTree/db.sqlite3 - chmod +rw /home/runner/work/InvenTree/db.sqlite3 - invoke migrate - - name: 0.10.0 Database run: | rm /home/runner/work/InvenTree/db.sqlite3 @@ -500,20 +494,28 @@ jobs: chmod +rw /home/runner/work/InvenTree/db.sqlite3 invoke migrate - - name: 0.12.0 Database + - name: 0.13.5 Database run: | rm /home/runner/work/InvenTree/db.sqlite3 - cp test-db/stable_0.12.0.sqlite3 /home/runner/work/InvenTree/db.sqlite3 + cp test-db/stable_0.13.5.sqlite3 /home/runner/work/InvenTree/db.sqlite3 chmod +rw /home/runner/work/InvenTree/db.sqlite3 invoke migrate - - name: 0.13.5 Database + - name: 0.16.0 Database run: | rm /home/runner/work/InvenTree/db.sqlite3 cp test-db/stable_0.13.5.sqlite3 /home/runner/work/InvenTree/db.sqlite3 chmod +rw /home/runner/work/InvenTree/db.sqlite3 invoke migrate + - name: 0.17.0 Database + run: | + rm /home/runner/work/InvenTree/db.sqlite3 + cp test-db/stable_0.13.5.sqlite3 /home/runner/work/InvenTree/db.sqlite3 + chmod +rw /home/runner/work/InvenTree/db.sqlite3 + invoke migrate + + platform_ui: name: Tests - Platform UI runs-on: ubuntu-20.04