mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Merge branch 'ci-updates' into docupdates
This commit is contained in:
commit
9c4c2c434f
41
.github/workflows/qc_checks.yaml
vendored
41
.github/workflows/qc_checks.yaml
vendored
@ -30,11 +30,12 @@ jobs:
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Enviroment Setup
|
||||
uses: inventree/inventree/.github/actions/setup@master
|
||||
uses: ./.github/actions/setup
|
||||
with:
|
||||
install: true
|
||||
- name: flake8
|
||||
- name: Run flake8
|
||||
run: flake8 InvenTree --extend-ignore=D
|
||||
|
||||
javascript:
|
||||
@ -44,12 +45,13 @@ jobs:
|
||||
needs: pep_style
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Enviroment Setup
|
||||
uses: inventree/inventree/.github/actions/setup@master
|
||||
uses: ./.github/actions/setup
|
||||
with:
|
||||
npm: true
|
||||
install: true
|
||||
- name: Check Templated Files
|
||||
- name: Check Templated JS Files
|
||||
run: |
|
||||
cd ci
|
||||
python3 check_js_templates.py
|
||||
@ -65,8 +67,9 @@ jobs:
|
||||
needs: pep_style
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Enviroment Setup
|
||||
uses: inventree/inventree/.github/actions/setup@master
|
||||
uses: ./.github/actions/setup
|
||||
with:
|
||||
npm: true
|
||||
install: true
|
||||
@ -86,7 +89,8 @@ jobs:
|
||||
with:
|
||||
python-version: ${{ env.python_version }}
|
||||
cache: 'pip'
|
||||
- uses: pre-commit/action@v2.0.3
|
||||
- name: Run pre-commit Checks
|
||||
uses: pre-commit/action@v2.0.3
|
||||
|
||||
python:
|
||||
name: Tests - inventree-python
|
||||
@ -106,20 +110,21 @@ jobs:
|
||||
INVENTREE_PYTHON_TEST_PASSWORD: testpassword
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Enviroment Setup
|
||||
uses: inventree/inventree/.github/actions/setup@master
|
||||
uses: ./.github/actions/setup
|
||||
with:
|
||||
apt-dependency: gettext
|
||||
update: true
|
||||
- name: Download Python Code
|
||||
- name: Download Python Code For `${{ env.wrapper_name }}`
|
||||
run: git clone --depth 1 https://github.com/inventree/${{ env.wrapper_name }} ./${{ env.wrapper_name }}
|
||||
- name: Start Server
|
||||
- name: Start InvenTree Server
|
||||
run: |
|
||||
invoke delete-data -f
|
||||
invoke import-fixtures
|
||||
invoke server -a 127.0.0.1:12345 &
|
||||
invoke wait
|
||||
- name: Run Tests
|
||||
- name: Run Tests For `${{ env.wrapper_name }}`
|
||||
run: |
|
||||
cd ${{ env.wrapper_name }}
|
||||
invoke check-server
|
||||
@ -153,15 +158,16 @@ jobs:
|
||||
INVENTREE_PLUGINS_ENABLED: true
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Enviroment Setup
|
||||
uses: inventree/inventree/.github/actions/setup@master
|
||||
uses: ./.github/actions/setup
|
||||
with:
|
||||
apt-dependency: gettext
|
||||
update: true
|
||||
- name: Coverage Tests
|
||||
run: invoke coverage
|
||||
- name: Data Export Test
|
||||
uses: inventree/inventree/.github/actions/migration@master
|
||||
uses: ./.github/actions/migration
|
||||
- name: Test Translations
|
||||
run: invoke translate
|
||||
- name: Check Migration Files
|
||||
@ -201,9 +207,9 @@ jobs:
|
||||
- 6379:6379
|
||||
|
||||
steps:
|
||||
|
||||
- uses: actions/checkout@v1
|
||||
- name: Enviroment Setup
|
||||
uses: inventree/inventree/.github/actions/setup@master
|
||||
uses: ./.github/actions/setup
|
||||
with:
|
||||
apt-dependency: gettext libpq-dev
|
||||
pip-dependency: psycopg2 django-redis>=5.0.0
|
||||
@ -211,7 +217,7 @@ jobs:
|
||||
- name: Run Tests
|
||||
run: invoke test
|
||||
- name: Data Export Test
|
||||
uses: inventree/inventree/.github/actions/migration@master
|
||||
uses: ./.github/actions/migration
|
||||
|
||||
mysql:
|
||||
name: Tests - DB [MySQL]
|
||||
@ -244,8 +250,9 @@ jobs:
|
||||
- 3306:3306
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Enviroment Setup
|
||||
uses: inventree/inventree/.github/actions/setup@master
|
||||
uses: ./.github/actions/setup
|
||||
with:
|
||||
apt-dependency: gettext libmysqlclient-dev
|
||||
pip-dependency: mysqlclient
|
||||
@ -253,4 +260,4 @@ jobs:
|
||||
- name: Run Tests
|
||||
run: invoke test
|
||||
- name: Data Export Test
|
||||
uses: inventree/inventree/.github/actions/migration@master
|
||||
uses: ./.github/actions/migration
|
||||
|
Loading…
Reference in New Issue
Block a user