mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-19 05:25:42 +00:00
only test backend if code changed
This commit is contained in:
12
.github/workflows/qc_checks.yaml
vendored
12
.github/workflows/qc_checks.yaml
vendored
@ -220,7 +220,8 @@ jobs:
|
|||||||
name: Tests - inventree-python
|
name: Tests - inventree-python
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
needs: pre-commit
|
needs: [ 'pre-commit', 'paths-filter' ]
|
||||||
|
if: needs.paths-filter.outputs.server == 'true' || needs.paths-filter.outputs.force == 'true'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
wrapper_name: inventree-python
|
wrapper_name: inventree-python
|
||||||
@ -261,7 +262,8 @@ jobs:
|
|||||||
name: Tests - DB [SQLite] + Coverage
|
name: Tests - DB [SQLite] + Coverage
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
needs: [ 'pre-commit' ]
|
needs: [ 'pre-commit', 'paths-filter' ]
|
||||||
|
if: needs.paths-filter.outputs.server == 'true' || needs.paths-filter.outputs.force == 'true'
|
||||||
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:
|
||||||
@ -306,7 +308,8 @@ jobs:
|
|||||||
postgres:
|
postgres:
|
||||||
name: Tests - DB [PostgreSQL]
|
name: Tests - DB [PostgreSQL]
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
needs: [ 'pre-commit' ]
|
needs: [ 'pre-commit', 'paths-filter' ]
|
||||||
|
if: needs.paths-filter.outputs.server == 'true' || needs.paths-filter.outputs.force == 'true'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
INVENTREE_DB_ENGINE: django.db.backends.postgresql
|
INVENTREE_DB_ENGINE: django.db.backends.postgresql
|
||||||
@ -350,7 +353,8 @@ jobs:
|
|||||||
name: Tests - DB [MySQL]
|
name: Tests - DB [MySQL]
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
needs: [ 'pre-commit' ]
|
needs: [ 'pre-commit', 'paths-filter' ]
|
||||||
|
if: needs.paths-filter.outputs.server == 'true' || needs.paths-filter.outputs.force == 'true'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
# Database backend configuration
|
# Database backend configuration
|
||||||
|
Reference in New Issue
Block a user