mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 03:26:45 +00:00
Fix CI pipelines (#9159)
* Use python venv in CI workflows * Revert action.yaml * Include invoke path in sys info * Fix typo
This commit is contained in:
parent
05fa36df72
commit
56de14610f
10
tasks.py
10
tasks.py
@ -101,11 +101,14 @@ def chceckInvokePath():
|
|||||||
return
|
return
|
||||||
|
|
||||||
invoke_path = Path(invoke.__file__)
|
invoke_path = Path(invoke.__file__)
|
||||||
|
env_path = Path(sys.prefix).resolve()
|
||||||
loc_path = Path(__file__).parent.resolve()
|
loc_path = Path(__file__).parent.resolve()
|
||||||
if not invoke_path.is_relative_to(loc_path):
|
if not invoke_path.is_relative_to(loc_path) and not invoke_path.is_relative_to(
|
||||||
|
env_path
|
||||||
|
):
|
||||||
error('INVE-E2 - Wrong Invoke Path')
|
error('INVE-E2 - Wrong Invoke Path')
|
||||||
error(
|
error(
|
||||||
f'The currently used invoke `{invoke_path}` is not correctly located, ensure you are using the invoke installed in an environment in `{loc_path}` !'
|
f'The invoke tool `{invoke_path}` is not correctly located, ensure you are using the invoke installed in an environment in `{loc_path}` or `{env_path}`'
|
||||||
)
|
)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
@ -1301,6 +1304,8 @@ def version(c):
|
|||||||
# Gather frontend version information
|
# Gather frontend version information
|
||||||
_, node, yarn = node_available(versions=True)
|
_, node, yarn = node_available(versions=True)
|
||||||
|
|
||||||
|
invoke_path = Path(invoke.__file__).resolve()
|
||||||
|
|
||||||
# Special output messages
|
# Special output messages
|
||||||
NOT_SPECIFIED = wrap_color('NOT SPECIFIED', '91')
|
NOT_SPECIFIED = wrap_color('NOT SPECIFIED', '91')
|
||||||
NA = wrap_color('N/A', '93')
|
NA = wrap_color('N/A', '93')
|
||||||
@ -1313,6 +1318,7 @@ The Open-Source Inventory Management System\n
|
|||||||
Python paths:
|
Python paths:
|
||||||
Executable {sys.executable}
|
Executable {sys.executable}
|
||||||
Environment {sys.prefix}
|
Environment {sys.prefix}
|
||||||
|
Invoke Tool {invoke_path}
|
||||||
|
|
||||||
Installation paths:
|
Installation paths:
|
||||||
Base {localDir()}
|
Base {localDir()}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user