mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-23 20:16:40 +00:00
ci: warmup test data along with DB
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_SYSTEM_SETUP: "1"
|
||||||
SKIP_WKHTMLTOX_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.
|
# Clean shutdown (consistent InnoDB datadir), then stage it inside the bench for packaging.
|
||||||
- name: Stop DB and stage datadir
|
- name: Stop DB and stage datadir
|
||||||
run: |
|
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