mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-15 03:25:42 +00:00
resturcture
This commit is contained in:
14
.github/workflows/qc_checks.yaml
vendored
14
.github/workflows/qc_checks.yaml
vendored
@ -34,7 +34,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Enviroment Setup
|
||||
uses: inventree/inventree/.github/workflows/reuse@master
|
||||
uses: matmair/inventree/.github/actions/setup@ci-updates
|
||||
with:
|
||||
python-version: ${{ env.python_version }}
|
||||
install: true
|
||||
@ -49,7 +49,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Enviroment Setup
|
||||
uses: inventree/inventree/.github/workflows/reuse@master
|
||||
uses: matmair/inventree/.github/actions/setup@ci-updates
|
||||
with:
|
||||
python-version: ${{ env.python_version }}
|
||||
update: true
|
||||
@ -70,7 +70,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Enviroment Setup
|
||||
uses: inventree/inventree/.github/workflows/reuse@master
|
||||
uses: matmair/inventree/.github/actions/setup@ci-updates
|
||||
with:
|
||||
python-version: ${{ env.python_version }}
|
||||
update: true
|
||||
@ -107,7 +107,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Enviroment Setup
|
||||
uses: inventree/inventree/.github/workflows/reuse@master
|
||||
uses: matmair/inventree/.github/actions/setup@ci-updates
|
||||
with:
|
||||
python-version: ${{ env.python_version }}
|
||||
update: true
|
||||
@ -161,7 +161,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Enviroment Setup
|
||||
uses: inventree/inventree/.github/workflows/reuse@master
|
||||
uses: matmair/inventree/.github/actions/setup@ci-updates
|
||||
with:
|
||||
python-version: ${{ env.python_version }}
|
||||
update: true
|
||||
@ -217,7 +217,7 @@ jobs:
|
||||
steps:
|
||||
|
||||
- name: Enviroment Setup
|
||||
uses: inventree/inventree/.github/workflows/reuse@master
|
||||
uses: matmair/inventree/.github/actions/setup@ci-updates
|
||||
with:
|
||||
python-version: ${{ env.python_version }}
|
||||
update: true
|
||||
@ -267,7 +267,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Enviroment Setup
|
||||
uses: inventree/inventree/.github/workflows/reuse@master
|
||||
uses: matmair/inventree/.github/actions/setup@ci-updates
|
||||
with:
|
||||
python-version: ${{ env.python_version }}
|
||||
update: true
|
||||
|
80
.github/workflows/reuse/action.yaml
vendored
80
.github/workflows/reuse/action.yaml
vendored
@ -1,80 +0,0 @@
|
||||
name: 'Setup Enviroment'
|
||||
description: 'Setup the enviroment for general InvenTree tests'
|
||||
author: 'inventree'
|
||||
inputs:
|
||||
python:
|
||||
required: false
|
||||
description: 'Install python.'
|
||||
default: true
|
||||
npm:
|
||||
required: false
|
||||
description: 'Install npm.'
|
||||
default: false
|
||||
|
||||
install:
|
||||
required: false
|
||||
description: 'Install the InvenTree requirements?'
|
||||
default: true
|
||||
update:
|
||||
required: false
|
||||
description: 'Should a full update cycle be run?'
|
||||
default: false
|
||||
|
||||
apt-dependency:
|
||||
required: false
|
||||
description: 'Extra APT package for install.'
|
||||
pip-dependency:
|
||||
required: false
|
||||
description: 'Extra python package for install.'
|
||||
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
# Python installs
|
||||
- name: Set up Python ${{ env.python_version }}
|
||||
if: ${{ inputs.python }} == true
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: ${{ env.python_version }}
|
||||
cache: ${{ runner.os }}-pip
|
||||
- name: Install Base Python Dependencies
|
||||
if: ${{ inputs.python }} == true
|
||||
run: |
|
||||
python3 -m pip install -U pip
|
||||
pip3 install invoke
|
||||
- name: Install Specific Python Dependencies
|
||||
if: ${{ inputs.pip-dependency }}
|
||||
run: |
|
||||
pip3 install ${{ inputs.pip-dependency }}
|
||||
|
||||
# NPM installs
|
||||
- name: Install node.js ${{ env.node_version }}
|
||||
if: ${{ inputs.npm }} == true
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: ${{ env.node_version }}
|
||||
cache: 'npm'
|
||||
- name: Intall npm packages
|
||||
if: ${{ inputs.npm }} == true
|
||||
run: npm install
|
||||
|
||||
# OS installs
|
||||
- name: Install OS Dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install gettext
|
||||
- name: Install Specific OS Dependencies
|
||||
if: ${{ inputs.apt-dependency }}
|
||||
run: |
|
||||
sudo apt-get install ${{ inputs.apt-dependency }}
|
||||
|
||||
# Invoke commands
|
||||
- name: Run invoke install
|
||||
if: ${{ inputs.install }} == true
|
||||
run: invoke install
|
||||
- name: Run invoke update
|
||||
if: ${{ inputs.update }} == true
|
||||
run: invoke update
|
Reference in New Issue
Block a user