Skip to content

Commit

Permalink
test against multiple ray version
Browse files Browse the repository at this point in the history
  • Loading branch information
pang-wu committed Dec 9, 2024
1 parent da588a3 commit a91fb61
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/ray_nightly_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest ]
python-version: [3.8, 3.9, 3.10.14]
python-version: [3.9, 3.10.14]
spark-version: [3.2.4, 3.3.2, 3.4.0, 3.5.0]

runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -82,15 +82,12 @@ jobs:
pip install torch
fi
case $PYTHON_VERSION in
3.7)
pip install "ray[train] @ https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-3.0.0.dev0-cp37-cp37m-manylinux2014_x86_64.whl"
;;
3.8)
pip install "ray[train] @ https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-3.0.0.dev0-cp38-cp38-manylinux2014_x86_64.whl"
;;
3.9)
pip install "ray[train] @ https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-3.0.0.dev0-cp39-cp39-manylinux2014_x86_64.whl"
;;
3.10.14)
pip install "ray[train] @ https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-3.0.0.dev0-cp310-cp310-manylinux2014_x86_64.whl"
;;
esac
pip install pyarrow==6.0.1 pytest koalas tensorflow==2.13.1 tabulate grpcio-tools wget
pip install "xgboost_ray[default]<=0.1.13"
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/raydp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest ]
python-version: [3.8, 3.9, 3.10.14]
python-version: [3.9, 3.10.14]
spark-version: [3.2.4, 3.3.2, 3.4.0, 3.5.0]
ray-version: [2.34.0, 2.40.0]

runs-on: ${{ matrix.os }}

Expand Down Expand Up @@ -82,7 +83,7 @@ jobs:
else
pip install torch
fi
pip install pyarrow==6.0.1 ray[train] pytest tensorflow==2.13.1 tabulate grpcio-tools wget
pip install pyarrow==6.0.1 "ray[train]==${{ matrix.ray-version }}" pytest tensorflow==2.13.1 tabulate grpcio-tools wget
pip install "xgboost_ray[default]<=0.1.13"
pip install "xgboost<=2.0.3"
pip install torchmetrics
Expand Down
2 changes: 1 addition & 1 deletion python/raydp/tf/estimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def fit(self,
# pylint: disable=E1123,E1120
if version.parse(ray.__version__) >= version.parse("2.39.0"):
preprocessor = Concatenator(
columns=self._feature_columns - label_cols,
columns=[col for col in self._feature_columns if col not in label_cols],
output_column_name="features",
)
else:
Expand Down

0 comments on commit a91fb61

Please sign in to comment.