File tree Expand file tree Collapse file tree 4 files changed +26
-4
lines changed Expand file tree Collapse file tree 4 files changed +26
-4
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,13 @@ jobs:
103
103
echo "KHIOPS_CORE_VERSION=$KHIOPS_CORE_VERSION" >> "$GITHUB_ENV"
104
104
- name : Install the Khiops Conda package
105
105
run : |
106
- conda install khiops-core=$KHIOPS_CORE_VERSION
106
+ # Add the Conda `rc` label for alpha or RC pre-releases
107
+ if [[ $(echo ${KHIOPS_CORE_VERSION} | grep -E ".*(a|rc)\.[0-9]+") ]]; then
108
+ RC_LABEL="conda-forge/label/rc::"
109
+ else
110
+ RC_LABEL=""
111
+ fi
112
+ conda install ${RC_LABEL}khiops-core=$KHIOPS_CORE_VERSION
107
113
conda install --channel ./khiops-conda/ khiops
108
114
- name : Test Khiops Installation Status
109
115
run : kh-status
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ requirements:
26
26
- python
27
27
run :
28
28
- python
29
- - khiops-core =11.0.0a.0
29
+ - conda-forge/label/rc:: khiops-core =11.0.0a.0
30
30
- pandas >=0.25.3
31
31
- scikit-learn >=0.22.2
32
32
run_constrained :
Original file line number Diff line number Diff line change @@ -69,16 +69,24 @@ RUN true \
69
69
# set up all the supported Python environments under conda (for the unit tests)
70
70
# relying on a variable containing all the versions
71
71
ARG PYTHON_VERSIONS
72
+
73
+ # Install Conda packages
74
+ # Use `rc` label for alpha or RC khiops-core pre-releases
72
75
RUN true \
73
76
&& export CONDA="/root/miniforge3/bin/conda" \
77
+ && if [[ $(echo ${KHIOPS_REVISION} | grep -E ".*-(a|rc)\.[0-9]+") ]]; then \
78
+ export RC_LABEL="conda-forge/label/rc::"; \
79
+ else \
80
+ export RC_LABEL=""; \
81
+ fi \
74
82
&& /bin/bash -c 'for version in ${PYTHON_VERSIONS}; \
75
83
do \
76
84
CONDA_ENVS="py${version} py${version}_conda"; \
77
85
for CONDA_ENV in $CONDA_ENVS; \
78
86
do \
79
87
$CONDA create -y -n $CONDA_ENV python=${version}; \
80
88
done; \
81
- $CONDA install -y -n py${version}_conda khiops-core=$(echo ${KHIOPS_REVISION} | tr -d "-") ; \
89
+ $CONDA install -y -n py${version}_conda ${RC_LABEL} khiops-core=$(echo ${KHIOPS_REVISION} | tr -d "-") ; \
82
90
done' \
83
91
&& true
84
92
Original file line number Diff line number Diff line change @@ -42,8 +42,16 @@ RUN true \
42
42
ARG PYTHON_VERSIONS
43
43
ARG KHIOPS_GCS_DRIVER_REVISION
44
44
ARG KHIOPS_S3_DRIVER_REVISION
45
+
46
+ # Install Conda packages
47
+ # Use `rc` label for alpha or RC khiops-core pre-releases
45
48
RUN true \
46
49
&& export CONDA="/root/miniforge3/bin/conda" \
50
+ && if [[ $(echo ${KHIOPS_REVISION} | grep -E ".*-(a|rc)\.[0-9]+") ]]; then \
51
+ export RC_LABEL="conda-forge/label/rc::"; \
52
+ else \
53
+ export RC_LABEL=""; \
54
+ fi \
47
55
&& /bin/bash -c 'for version in ${PYTHON_VERSIONS}; \
48
56
do \
49
57
CONDA_ENVS="py${version} py${version}_conda"; \
@@ -52,7 +60,7 @@ RUN true \
52
60
$CONDA create -y -n $CONDA_ENV python=${version}; \
53
61
done; \
54
62
# khiops core \
55
- $CONDA install -y -n py${version}_conda khiops-core=$(echo ${KHIOPS_REVISION} | tr -d "-") ; \
63
+ $CONDA install -y -n py${version}_conda ${RC_LABEL} khiops-core=$(echo ${KHIOPS_REVISION} | tr -d "-") ; \
56
64
# remote files drivers installed in the conda environment \
57
65
$CONDA install -y -n py${version}_conda -c khiops \
58
66
khiops-driver-s3=${KHIOPS_S3_DRIVER_REVISION} \
You can’t perform that action at this time.
0 commit comments