mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-01 07:37:04 +00:00
Merge pull request #56691 from mihir-kandoi/pg-ci-warmup-test-data
ci(postgres): warm up test data before baking the datadir
This commit is contained in:
7
.github/workflows/server-tests-postgres.yml
vendored
7
.github/workflows/server-tests-postgres.yml
vendored
@@ -105,6 +105,11 @@ jobs:
|
|||||||
FRAPPE_BRANCH: develop
|
FRAPPE_BRANCH: develop
|
||||||
BENCH_CACHE_DIR: /home/runner/bench-cache
|
BENCH_CACHE_DIR: /home/runner/bench-cache
|
||||||
|
|
||||||
|
- name: Warm up test data
|
||||||
|
run: |
|
||||||
|
cd ~/frappe-bench/
|
||||||
|
bench --site test_site run-tests --lightmode --module erpnext.tests.bootstrap_test_data
|
||||||
|
|
||||||
- name: Stop DB and stage datadir
|
- name: Stop DB and stage datadir
|
||||||
run: |
|
run: |
|
||||||
PG_BIN=$(ls -d /usr/lib/postgresql/*/bin | sort -V | tail -1)
|
PG_BIN=$(ls -d /usr/lib/postgresql/*/bin | sort -V | tail -1)
|
||||||
@@ -132,7 +137,7 @@ jobs:
|
|||||||
compression-level: 0
|
compression-level: 0
|
||||||
|
|
||||||
test:
|
test:
|
||||||
name: Python Unit Tests (PG)
|
name: Python Unit Tests
|
||||||
needs: setup
|
needs: setup
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
|
|||||||
Reference in New Issue
Block a user