File tree Expand file tree Collapse file tree 4 files changed +7
-4
lines changed
Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,8 @@ jobs:
103103 echo "KHIOPS_CORE_VERSION=$KHIOPS_CORE_VERSION" >> "$GITHUB_ENV"
104104 - name : Install the Khiops Conda package
105105 run : |
106- conda install khiops-core=$KHIOPS_CORE_VERSION
106+ if [[ $(echo ${KHIOPS_CORE_VERSION} | grep -E ".*-(a|rc)\.[0-9]+") ]]; then RC_LABEL="conda-forge/label/rc::"; else RC_LABEL=""; fi \
107+ conda install ${RC_LABEL}khiops-core=$KHIOPS_CORE_VERSION
107108 conda install --channel ./khiops-conda/ khiops
108109 - name : Test Khiops Installation Status
109110 run : kh-status
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ requirements:
2626 - python
2727 run :
2828 - python
29- - khiops-core =11.0.0a.0
29+ - conda-forge/label/rc:: khiops-core =11.0.0a.0
3030 - pandas >=0.25.3
3131 - scikit-learn >=0.22.2
3232 run_constrained :
Original file line number Diff line number Diff line change @@ -71,14 +71,15 @@ RUN true \
7171ARG PYTHON_VERSIONS
7272RUN true \
7373 && export CONDA="/root/miniforge3/bin/conda" \
74+ && if [[ $(echo ${KHIOPS_REVISION} | grep -E ".*-(a|rc)\.[0-9]+") ]]; then export RC_LABEL="conda-forge/label/rc::"; else export RC_LABEL=""; fi \
7475 && /bin/bash -c 'for version in ${PYTHON_VERSIONS}; \
7576 do \
7677 CONDA_ENVS="py${version} py${version}_conda"; \
7778 for CONDA_ENV in $CONDA_ENVS; \
7879 do \
7980 $CONDA create -y -n $CONDA_ENV python=${version}; \
8081 done; \
81- $CONDA install -y -n py${version}_conda khiops-core=$(echo ${KHIOPS_REVISION} | tr -d "-") ; \
82+ $CONDA install -y -n py${version}_conda ${RC_LABEL} khiops-core=$(echo ${KHIOPS_REVISION} | tr -d "-") ; \
8283 done' \
8384 && true
8485
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ ARG KHIOPS_GCS_DRIVER_REVISION
4444ARG KHIOPS_S3_DRIVER_REVISION
4545RUN true \
4646 && export CONDA="/root/miniforge3/bin/conda" \
47+ && if [[ $(echo ${KHIOPS_REVISION} | grep -E ".*-(a|rc)\.[0-9]+") ]]; then export RC_LABEL="conda-forge/label/rc::"; else export RC_LABEL=""; fi \
4748 && /bin/bash -c 'for version in ${PYTHON_VERSIONS}; \
4849 do \
4950 CONDA_ENVS="py${version} py${version}_conda"; \
@@ -52,7 +53,7 @@ RUN true \
5253 $CONDA create -y -n $CONDA_ENV python=${version}; \
5354 done; \
5455 # khiops core \
55- $CONDA install -y -n py${version}_conda khiops-core=$(echo ${KHIOPS_REVISION} | tr -d "-") ; \
56+ $CONDA install -y -n py${version}_conda ${RC_LABEL} khiops-core=$(echo ${KHIOPS_REVISION} | tr -d "-") ; \
5657 # remote files drivers installed in the conda environment \
5758 $CONDA install -y -n py${version}_conda -c khiops \
5859 khiops-driver-s3=${KHIOPS_S3_DRIVER_REVISION} \
You can’t perform that action at this time.
0 commit comments