Skip to content

Commit 2df4c72

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

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

.github/workflows/run_test.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ jobs:
1818
- name: Install dependencies
1919
run: |
2020
python -m pip install --upgrade pip && pip install -r requirements.txt
21-
- name: Lint with Ruff
22-
run: |
23-
pip install ruff && ruff check . && ruff format .
24-
continue-on-error: true
2521
- name: Test with pytest
2622
run: |
2723
pip install pytest && pytest test_app_cicd.py

predict.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ def __init__(self: Self, env_file_path: str = None) -> None:
3737
# If .env filepath is supplied, use it. Or else '.env' is used.
3838
env_file_path = env_file_path or ".env"
3939
_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
40+
**dotenv_values(".env.shared"), # load & unpack shared development variables
41+
**dotenv_values(".env.secret"), # load & unpack sensitive variables
42+
**dotenv_values(env_file_path) # override previous with user set `env_file_path`
4343
}
4444

4545
self.prediction_api: str = _config.get("DEFAULT_PREDICTION_API")

0 commit comments

Comments
 (0)