mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-14 23:18:40 +00:00
Merge pull request #56658 from frappe/mergify/bp/version-16-hotfix/pr-56655
ci: warmup test data along with DB (backport #56655)
This commit is contained in:
7
.github/workflows/server-tests-mariadb.yml
vendored
7
.github/workflows/server-tests-mariadb.yml
vendored
@@ -107,6 +107,13 @@ jobs:
|
||||
SKIP_SYSTEM_SETUP: "1"
|
||||
SKIP_WKHTMLTOX_SETUP: "1"
|
||||
|
||||
- name: Warm up test data
|
||||
run: |
|
||||
su -m "${ERPNEXT_CI_USER:-frappe}" -s /bin/bash <<'EOF'
|
||||
cd ~/frappe-bench/
|
||||
bench --site test_site run-tests --lightmode --module erpnext.tests.bootstrap_test_data
|
||||
EOF
|
||||
|
||||
# Clean shutdown (consistent InnoDB datadir), then stage it inside the bench for packaging.
|
||||
- name: Stop DB and stage datadir
|
||||
run: |
|
||||
|
||||
3
erpnext/tests/bootstrap_test_data.py
Normal file
3
erpnext/tests/bootstrap_test_data.py
Normal file
@@ -0,0 +1,3 @@
|
||||
# This file is solely to trigger BootStrapTestData from CI
|
||||
# utils.py module import instantiates BootStrapTestData
|
||||
from erpnext.tests.utils import ERPNextTestSuite
|
||||
Reference in New Issue
Block a user