Skip to content

Commit

Permalink
Run keras tests against keras-nightly (#4757)
Browse files Browse the repository at this point in the history
* Run keras tests against keras nightly

Signed-off-by: harupy <hkawamura0130@gmail.com>

* install scikit-learn in dev test

Signed-off-by: harupy <hkawamura0130@gmail.com>

* install more packages

Signed-off-by: harupy <hkawamura0130@gmail.com>

* remove pyspark and pyarrow in autologging workflow

Signed-off-by: harupy <hkawamura0130@gmail.com>
  • Loading branch information
harupy committed Aug 31, 2021
1 parent eb7623b commit c4b8e84
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/cross-version-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,5 +162,6 @@ jobs:
env:
MLFLOW_CONDA_HOME: /usr/share/miniconda
SPARK_LOCAL_IP: 127.0.0.1
PACKAGE_VERSION: ${{ matrix.version }}
run: |
${{ matrix.run }}
13 changes: 13 additions & 0 deletions mlflow/ml-package-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ tensorflow:
maximum: "2.6.0"
requirements:
"< 2.2": ["h5py<3.0", "scikit-learn"]
# Requirements to run tests for keras
"== dev": ["scikit-learn", "pyspark", "pyarrow"]
run: |
python_code="
import tensorflow as tf
Expand All @@ -72,11 +74,18 @@ tensorflow:
pytest tests/tensorflow/test_tensorflow2_model_export.py --large
fi
# Run tests for keras against keras-nightly that's installed with tf-nightly:
# https://github.com/tensorflow/tensorflow/blob/v2.6.0/tensorflow/tools/pip_package/setup.py#L110-L122
if [ "$PACKAGE_VERSION" == "dev" ]; then
pytest tests/keras/test_keras_model_export.py --large
fi
autologging:
minimum: "1.15.4"
maximum: "2.6.0"
requirements:
"< 2.2": ["h5py<3.0"]
"== dev": ["scikit-learn"]
run: |
python_code="
import tensorflow as tf
Expand All @@ -92,6 +101,10 @@ tensorflow:
pytest tests/tensorflow_autolog/test_tensorflow2_autolog.py --large
fi
if [ "$PACKAGE_VERSION" == "dev" ]; then
pytest tests/keras_autolog/test_keras_autolog.py --large
fi
keras:
package_info:
pip_release: "keras"
Expand Down

0 comments on commit c4b8e84

Please sign in to comment.