mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 12:06:44 +00:00
parent
cd3d3834be
commit
be59d1eb05
24
.github/workflows/qc_checks.yaml
vendored
24
.github/workflows/qc_checks.yaml
vendored
@ -64,10 +64,10 @@ jobs:
|
|||||||
run: flake8 InvenTree --extend-ignore=D
|
run: flake8 InvenTree --extend-ignore=D
|
||||||
|
|
||||||
javascript:
|
javascript:
|
||||||
name: Style [JS]
|
name: Style - Classic UI [JS]
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
needs: pep_style
|
needs: ['pep_style', 'pre-commit']
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # pin@v3.1.0
|
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # pin@v3.1.0
|
||||||
@ -88,8 +88,8 @@ jobs:
|
|||||||
pre-commit:
|
pre-commit:
|
||||||
name: Style [pre-commit]
|
name: Style [pre-commit]
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
needs: paths-filter
|
||||||
needs: pep_style
|
if: needs.paths-filter.outputs.server == 'true' || needs.paths-filter.outputs.frontend == 'true'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # pin@v3.1.0
|
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # pin@v3.1.0
|
||||||
@ -187,7 +187,7 @@ jobs:
|
|||||||
name: Tests - DB [SQLite] + Coverage
|
name: Tests - DB [SQLite] + Coverage
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
needs: [ 'javascript', 'pre-commit' ]
|
needs: [ 'pep_style', 'pre-commit' ]
|
||||||
continue-on-error: true # continue if a step fails so that coverage gets pushed
|
continue-on-error: true # continue if a step fails so that coverage gets pushed
|
||||||
|
|
||||||
env:
|
env:
|
||||||
@ -220,7 +220,7 @@ jobs:
|
|||||||
postgres:
|
postgres:
|
||||||
name: Tests - DB [PostgreSQL]
|
name: Tests - DB [PostgreSQL]
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
needs: [ 'javascript', 'pre-commit' ]
|
needs: [ 'pep_style', 'pre-commit' ]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
INVENTREE_DB_ENGINE: django.db.backends.postgresql
|
INVENTREE_DB_ENGINE: django.db.backends.postgresql
|
||||||
@ -264,7 +264,7 @@ jobs:
|
|||||||
name: Tests - DB [MySQL]
|
name: Tests - DB [MySQL]
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
needs: [ 'javascript', 'pre-commit' ]
|
needs: [ 'pep_style', 'pre-commit' ]
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
@ -306,7 +306,7 @@ jobs:
|
|||||||
uses: ./.github/actions/migration
|
uses: ./.github/actions/migration
|
||||||
|
|
||||||
migration-tests:
|
migration-tests:
|
||||||
name: Run Migration Unit Tests
|
name: Tests - Migrations [PostgreSQL]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: paths-filter
|
needs: paths-filter
|
||||||
if: github.ref == 'refs/heads/master' && needs.paths-filter.outputs.migrations == 'true'
|
if: github.ref == 'refs/heads/master' && needs.paths-filter.outputs.migrations == 'true'
|
||||||
@ -343,7 +343,7 @@ jobs:
|
|||||||
run: invoke test --migrations --report
|
run: invoke test --migrations --report
|
||||||
|
|
||||||
migrations-checks:
|
migrations-checks:
|
||||||
name: Run Database Migrations
|
name: Tests - Full Migration [SQLite]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: paths-filter
|
needs: paths-filter
|
||||||
if: github.ref == 'refs/heads/master' && needs.paths-filter.outputs.migrations == 'true'
|
if: github.ref == 'refs/heads/master' && needs.paths-filter.outputs.migrations == 'true'
|
||||||
@ -391,11 +391,11 @@ jobs:
|
|||||||
chmod +rw /home/runner/work/InvenTree/db.sqlite3
|
chmod +rw /home/runner/work/InvenTree/db.sqlite3
|
||||||
invoke migrate
|
invoke migrate
|
||||||
|
|
||||||
plattform_ui:
|
platform_ui:
|
||||||
name: Tests - UI Platform
|
name: Tests - Platform UI
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
needs: paths-filter
|
needs: ['pre-commit', 'paths-filter']
|
||||||
if: needs.paths-filter.outputs.frontend == 'true'
|
if: needs.paths-filter.outputs.frontend == 'true'
|
||||||
env:
|
env:
|
||||||
INVENTREE_DB_ENGINE: sqlite3
|
INVENTREE_DB_ENGINE: sqlite3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user