needed for import / export checks

This commit is contained in:
Matthias 2021-12-02 13:54:40 +01:00
parent 961c161b3c
commit dd9eed3da6
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -21,6 +21,7 @@ env:
# general database settings # general database settings
INVENTREE_DB_ENGINE: sqlite3 INVENTREE_DB_ENGINE: sqlite3
INVENTREE_DB_NAME: inventree INVENTREE_DB_NAME: inventree
INVENTREE_DB_NAME_main: inventree
INVENTREE_MEDIA_ROOT: ./media INVENTREE_MEDIA_ROOT: ./media
INVENTREE_STATIC_ROOT: ./static INVENTREE_STATIC_ROOT: ./static
@ -169,6 +170,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
INVENTREE_DB_NAME: './${{ env.INVENTREE_DB_NAME_main }}.sqlite'
INVENTREE_DB_ENGINE: sqlite3 INVENTREE_DB_ENGINE: sqlite3
steps: steps:
@ -193,7 +195,7 @@ jobs:
invoke migrate invoke migrate
invoke import-fixtures invoke import-fixtures
invoke export-records -f data.json invoke export-records -f data.json
rm ${{ env.INVENTREE_DB_NAME }}.sqlite rm ${{ env.INVENTREE_DB_NAME_main }}.sqlite
invoke migrate invoke migrate
invoke import-records -f data.json invoke import-records -f data.json
invoke import-records -f data.json invoke import-records -f data.json