Skip to content

Commit a626d6c

Browse files
Amend ci/cd, update predict.py
1 parent e9a8d9b commit a626d6c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/run_test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ jobs:
2828
continue-on-error: true
2929
- name: Generate Coverage Report
3030
run: |
31-
coverage report -m
31+
pip install coverage && coverage report -m

predict.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ def __init__(self: Self, env_file_path: str = None) -> None:
3636

3737
# If .env filepath is supplied, use it. Or else '.env' is used.
3838
env_file_path = env_file_path or ".env"
39-
_config: dict = dotenv_values(env_file_path)
39+
_config: dict = {
40+
**dotenv_values(".env.shared"), # load shared development variables
41+
**dotenv_values(".env.secret"), # load sensitive variables
42+
**dotenv_values(env_file_path) # override GitHub Actions
43+
}
4044

4145
self.prediction_api: str = _config.get("DEFAULT_PREDICTION_API")
4246
print(f"\t[INFO]\tAI backend: `{self.prediction_api}`.")

0 commit comments

Comments
 (0)