diff --git a/.github/workflows/import_data.yaml b/.github/workflows/import_data.yaml new file mode 100644 index 0000000..6f96752 --- /dev/null +++ b/.github/workflows/import_data.yaml @@ -0,0 +1,35 @@ +name: Import Dataset + +on: ["push", "pull_request"] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + max-parallel: 4 + matrix: + python-version: [3.7] + + env: + INVENTREE_DB_ENGINE: sqlite3 + INVENTREE_DB_NAME: inventree_db.sqlite3 + INVENTREE_MEDIA_ROOT: $GITHUB_WORKSPACE/path/to/media + + steps: + - name: Checkout Code + uses: actions/checkout@v2 + - name: Setup Python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install InvenTree + run: | + sudo apt-get install python3-dev python3-pip python3-venv python3-wheel g++ + pip3 install invoke + git clone --depth 1 https://github.com/inventree/inventree inventree + cd inventree + invoke install + - name: Import Database Records + cd inventree + invoke import-records -f $GITHUB_WORKSPACE/inventree_data.json diff --git a/README.md b/README.md index 6e4f769..87b28d6 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,7 @@ -# demo-dataset -Dataset for the InvenTree demo website +# InvenTree Demo Dataset + +This repository contains demo data for the [InvenTree project](https://inventree.readthedocs.io). + +The demo dataset can be used to populate an InvenTree database for demonstration purposes. It may also be useful if you are developing and/or testing new features for InvenTree. + +To setup InvenTree with this dataset, refer to the [InvenTree Instructions](https://inventree.readthedocs.io/en/latest/start/demo/). \ No newline at end of file diff --git a/inventree_data.json b/inventree_data.json new file mode 100644 index 0000000..544b7b4 --- /dev/null +++ b/inventree_data.json @@ -0,0 +1,3 @@ +{ + +} \ No newline at end of file