@@ -117,7 +117,7 @@ jobs:
117117 PATH=$(echo $PATH | sed "s#$CONDA_PREFIX/bin:##g")
118118
119119 # Unset *CONDA* environment variables
120- # As a corrolary , CONDA_PREFIX is unset
120+ # As a corollary , CONDA_PREFIX is unset
121121 # Note: There is no way to remove these variables from GITHUB_ENV
122122 # (see https://github.com/actions/runner/issues/1126)
123123 for CONDA_VAR in $(env | grep CONDA)
@@ -131,17 +131,17 @@ jobs:
131131 run : |
132132 kh-download-datasets \
133133 --version ${{ inputs.khiops-samples-version || env.DEFAULT_SAMPLES_VERSION }}
134- - name : Test Conda Package on Samples
134+ - name : Run Samples
135135 env :
136136 # Force > 2 CPU cores to launch mpiexec
137137 KHIOPS_PROC_NUMBER : 4
138138 run : |
139- kh-samples core -i train_predictor -e
139+ kh-samples core -i deploy_model -e
140+ kh-samples core -i deploy_coclustering -e
140141 kh-samples core -i train_predictor_error_handling -e
141- kh-samples core -i train_coclustering -e
142142 kh-samples sklearn -i khiops_classifier -e
143143 kh-samples sklearn -i khiops_coclustering -e
144- - name : Test Conda Package on Some Samples (Conda-Based Environments)
144+ - name : Run Samples (Conda-Based Environments)
145145 env :
146146 # Force > 2 CPU cores to launch mpiexec
147147 KHIOPS_PROC_NUMBER : 4
@@ -153,18 +153,57 @@ jobs:
153153 PATH=$(echo $PATH | sed "s#$CONDA_PREFIX/bin:##g")
154154
155155 # Unset *CONDA* environment variables
156- # As a corrolary , CONDA_PREFIX is unset
156+ # As a corollary , CONDA_PREFIX is unset
157157 # Note: There is no way to remove these variables from GITHUB_ENV
158158 # (see https://github.com/actions/runner/issues/1126)
159159 for CONDA_VAR in $(env | grep CONDA)
160160 do
161161 unset $(echo $CONDA_VAR | cut -d '=' -f 1)
162162 done
163163
164- # Execute some Khiops and Khiops Coclustering samples
164+ # Run samples
165165 # Note: kh-samples is not reachable as it is not in PATH
166166 $PYTHON -m khiops.samples.samples -i deploy_model -e
167167 $PYTHON -m khiops.samples.samples -i deploy_coclustering -e
168+ $PYTHON -m khiops.samples.samples -i train_predictor_error_handling -e
169+ $PYTHON -m khiops.samples.samples_sklearn -i khiops_classifier -e
170+ $PYTHON -m khiops.samples.samples_sklearn -i khiops_coclustering -e
171+ # Checkout the sources to obtain the tests
172+ # Note: The `sparse-checkout` option of this action is bugged so we checkout all the sources
173+ # See https://github.com/actions/checkout/issues/1628
174+ - name : Checkout Sources
175+ uses : actions/checkout@v4
176+ with :
177+ fetch-depth : 1
178+ # This is needed so python does not retrieve the khiops module from PWD
179+ - name : Remove the khiops Module from the Sources
180+ run : rm -rf khiops
181+ - name : Install the Test Requirements
182+ run : conda install -y --file test-requirements.txt
183+ - name : Run the Runner Initialization Integration Test
184+ run : |
185+ python -m unittest -v \
186+ tests.test_khiops_integrations.KhiopsRunnerEnvironmentTests.test_runner_environment_initialization
187+ - name : Run the Runner Initialization Integration Test (Conda-Based Environments)
188+ run : |
189+ # Set `python` to the current Conda Python executable
190+ PYTHON="$(type -P python)"
191+
192+ # Remove $CONDA_PREFIX/bin from PATH
193+ PATH=$(echo $PATH | sed "s#$CONDA_PREFIX/bin:##g")
194+
195+ # Unset *CONDA* environment variables
196+ # As a corolary, CONDA_PREFIX is unset
197+ # Note: There is no way to remove these variables from GITHUB_ENV
198+ # (see https://github.com/actions/runner/issues/1126)
199+ for CONDA_VAR in $(env | grep CONDA)
200+ do
201+ unset $(echo $CONDA_VAR | cut -d '=' -f 1)
202+ done
203+
204+ # Execute the runner initialization integration test
205+ $PYTHON -m unittest -v \
206+ tests.test_khiops_integrations.KhiopsRunnerEnvironmentTests.test_runner_environment_initialization
168207
169208 # Release is only executed on tags
170209 # Note: For this job to work the secrets variables KHIOPS_ANACONDA_CHANNEL_TOKEN and
0 commit comments