Skip to content

Commit 01b9e14

Browse files
author
“jagnd1”
committed
fix pythonpath for common module imports
- add PYTHONPATH=../:$PYTHONPATH to both services - resolves ModuleNotFoundError: No module named 'common' - services should now start successfully in CI
1 parent e483ef9 commit 01b9e14

2 files changed

Lines changed: 668 additions & 509 deletions

File tree

.github/workflows/sonarcloud.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ jobs:
4848
export HSM_PORT="1234"
4949
export CRYPTO_HSM="GP"
5050
export ENVIRONMENT="test"
51+
export PYTHONPATH="../:$PYTHONPATH"
5152
nohup uvicorn app.main:app --host 0.0.0.0 --port 8001 > crypto.log 2>&1 &
5253
echo $! > crypto.pid
5354
@@ -58,6 +59,7 @@ jobs:
5859
# set env vars for CI environment
5960
export KC_CLI="pki-ci"
6061
export ENVIRONMENT="test"
62+
export PYTHONPATH="../:$PYTHONPATH"
6163
nohup uvicorn app.main:app --host 0.0.0.0 --port 8000 > pki.log 2>&1 &
6264
echo $! > pki.pid
6365

0 commit comments

Comments
 (0)