Merge branch 'ci-updates' into docupdates

This commit is contained in:
Matthias 2022-05-28 01:09:14 +02:00
commit 9c4c2c434f
No known key found for this signature in database
GPG Key ID: AB6D0E6C4CB65093

View File

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