Skip to content

Commit 078d303

Browse files
committed
use requirements
1 parent e142f57 commit 078d303

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.github/workflows/mlflow-ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ jobs:
3939
uses: actions/setup-python@v4
4040
with:
4141
python-version: 3.12
42+
cache: 'pip'
43+
cache-dependency-path: applications/mlflow/tests/requirements.txt
4244

4345
- name: Install Task
4446
uses: arduino/setup-task@v1

applications/mlflow/Taskfile.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -895,8 +895,8 @@ tasks:
895895
cmds:
896896
- echo "Running application tests against MLflow on localhost:{{.PORT}}..."
897897
- |
898-
echo "Installing Python dependencies for tests..."
899-
pip3 install setuptools mlflow==2.11.0 pandas>=2.0.0 scikit-learn>=1.3.0 requests>=2.31.0 urllib3>=2.0.0
898+
echo "Installing Python dependencies from requirements.txt..."
899+
pip3 install -r {{.TESTS_DIR}}/requirements.txt
900900
901901
echo "Running MLflow application tests"
902902
python {{.TESTS_DIR}}/mlflow_test.py localhost:{{.PORT}} \
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
setuptools>=65.0.0
2+
mlflow==2.11.0
3+
pandas>=2.0.0
4+
scikit-learn>=1.3.0
5+
requests>=2.31.0
6+
urllib3>=2.0.0

0 commit comments

Comments
 (0)