Demo data branch backport (#12521)

* Auto-detect demo dataset branch in CI

* Fix github actions

* Fix typo
This commit is contained in:
Oliver
2026-07-31 15:57:53 +10:00
committed by GitHub
parent 74ee9c5029
commit 70dee5c145
3 changed files with 32 additions and 25 deletions
+2 -6
View File
@@ -40,10 +40,6 @@ env:
INVENTREE_DB_HOST: "127.0.0.1"
INVENTREE_DB_PORT: 5432
# Use the same-named branch of the demo dataset as the target branch of this build,
# so that stable branches are not broken by changes to the demo dataset on main
DEMO_DATASET_BRANCH: ${{ github.event_name == 'pull_request' && github.base_ref || github.ref_name }}
jobs:
paths-filter:
@@ -91,10 +87,10 @@ jobs:
pip-dependency: psycopg
update: true
static: false
- name: Setup Postgres Database
- name: Setup Test Data
run: |
invoke migrate
invoke dev.setup-test -i --branch "$DEMO_DATASET_BRANCH"
invoke dev.setup-test -i
- name: Create Plugin Data
run: |
pip install -U inventree-dummy-app-plugin==0.1.0