mirror of
https://github.com/inventree/InvenTree.git
synced 2026-04-05 19:10:54 +00:00
* Prevent creation of PluginConfig during migrations * Refactor data import process - Split into multiple separate steps * Load plugins during data load / dump - Required, otherwise we cannot dump the data * Refactor export_records - Use temporary file - Cleanup docstring * Force apps check on second validation step * Improve import sequencing * Update CI script * Update migration docs * CI pipeline for running import/export test * Fix workflow naming * Fix env vars * Add placeholder script * Fix matrix env vars * Fix missing env var * Install required packages * Fix typo * Tweak tasks.py * Install dummy plugin as part of the * Updated CI workflow * Validate exported data * Additional CI process * Log mandatory plugins to INFO * Force global setting * Refactor CI pipeline * Tweak file test * Workflow updates * Enable auto-update * Test if import/export test should run * Trigger if tasks.py changes
18 lines
509 B
YAML
18 lines
509 B
YAML
name: 'Migration test'
|
|
description: 'Run migration test sequence'
|
|
author: 'InvenTree'
|
|
|
|
runs:
|
|
using: 'composite'
|
|
steps:
|
|
- name: Data Import Export
|
|
shell: bash
|
|
run: |
|
|
invoke migrate
|
|
invoke dev.import-fixtures
|
|
invoke export-records -f data.json
|
|
python3 ./src/backend/InvenTree/manage.py flush --noinput
|
|
invoke migrate
|
|
invoke import-records -c -f data.json --strict
|
|
invoke import-records -c -f data.json --strict
|