2
0
mirror of https://github.com/inventree/demo-dataset.git synced 2026-02-27 14:40:45 +00:00

Comment out stable job in import_data.yaml (#102)

Commented out the stable job and its steps in the workflow.
This commit is contained in:
Oliver
2026-02-15 23:24:58 +11:00
committed by GitHub
parent 4bfbd09d6d
commit ab3deeed1c

View File

@@ -3,36 +3,36 @@ name: Import Dataset
on: ["push", "pull_request"] on: ["push", "pull_request"]
jobs: jobs:
stable: # stable:
runs-on: ubuntu-latest # runs-on: ubuntu-latest
#
# env:
# INVENTREE_SITE_URL: http://localhost:8000
# INVENTREE_DB_ENGINE: sqlite3
# INVENTREE_DB_NAME: inventree_db_stable.sqlite3
# INVENTREE_BACKUP_DIR: $GITHUB_WORKSPACE/path/to/backup
# INVENTREE_MEDIA_ROOT: $GITHUB_WORKSPACE/path/to/media
# INVENTREE_STATIC_ROOT: $GITHUB_WORKSPACE/path/to/static
env: # steps:
INVENTREE_SITE_URL: http://localhost:8000 # - name: Checkout Code
INVENTREE_DB_ENGINE: sqlite3 # uses: actions/checkout@v2
INVENTREE_DB_NAME: inventree_db_stable.sqlite3 # - name: Setup Python
INVENTREE_BACKUP_DIR: $GITHUB_WORKSPACE/path/to/backup # uses: actions/setup-python@v2
INVENTREE_MEDIA_ROOT: $GITHUB_WORKSPACE/path/to/media # with:
INVENTREE_STATIC_ROOT: $GITHUB_WORKSPACE/path/to/static # python-version: 3.11
# - name: Install InvenTree
steps: # run: |
- name: Checkout Code # sudo apt-get install python3-dev python3-pip python3-venv python3-wheel g++
uses: actions/checkout@v2 # pip3 install invoke
- name: Setup Python # git clone --depth 1 https://github.com/inventree/inventree inventree -b stable
uses: actions/setup-python@v2 # cd inventree
with: # invoke install
python-version: 3.11 # - name: Import Database Records
- name: Install InvenTree # run: |
run: | # cd inventree
sudo apt-get install python3-dev python3-pip python3-venv python3-wheel g++ # invoke migrate
pip3 install invoke # invoke import-records -c -f $GITHUB_WORKSPACE/inventree_data.json
git clone --depth 1 https://github.com/inventree/inventree inventree -b stable
cd inventree
invoke install
- name: Import Database Records
run: |
cd inventree
invoke migrate
invoke import-records -c -f $GITHUB_WORKSPACE/inventree_data.json
latest: latest:
runs-on: ubuntu-latest runs-on: ubuntu-latest