@@ -358,19 +358,38 @@ jobs:
358358 token : ${{ secrets.GITHUB_TOKEN }}
359359 path : khiops-samples
360360 - name : Install khiops-python dev dependencies
361+ shell : bash
361362 run : |
362363 # The following git command is required,
363364 # as the Git repository is in a directory the current user does not own,
364365 # Python versioneer fails to compute the current version correctly otherwise
365366 git config --global --add safe.directory $(realpath .)
367+
368+ # A virtual env is mandatory under debian
369+ if [[ "${{ matrix.container }}" == "debian13" ]]; then
370+ python -m venv khiops-debian-venv
371+ source khiops-debian-venv/bin/activate
372+ fi
373+
366374 # Install tomli for Python < 3.11
367- pip install --user tomli
375+ pip install tomli
368376 python scripts/extract_dependencies_from_pyproject_toml.py -f "pyproject.toml" > requires.txt
369- pip install --user `cat requires.txt`
377+ pip install `cat requires.txt`
370378 rm -f requires.txt
379+ if [[ "${{ matrix.container }}" == "debian13" ]]; then
380+ deactivate
381+ fi
371382 - name : Setup and Install Test Requirements
372- run : |
383+ shell : bash
384+ run : |-
385+ # A virtual env is mandatory under debian
386+ if [[ "${{ matrix.container }}" == "debian13" ]]; then
387+ source khiops-debian-venv/bin/activate
388+ fi
373389 pip install -r test-requirements.txt
390+ if [[ "${{ matrix.container }}" == "debian13" ]]; then
391+ deactivate
392+ fi
374393 - name : Test Khiops Integration
375394 env :
376395 # Force > 2 CPU cores to launch mpiexec
@@ -381,6 +400,7 @@ jobs:
381400 OMPI_MCA_rmaps_base_oversubscribe : true
382401 # Oversubscribe for Open MPI >= 5
383402 PRTE_MCA_rmaps_default_mapping_policy : :oversubscribe
403+ shell : bash
384404 run : |-
385405 # Reset the default 'exit-on-error' mode of the bash shell in Github actions
386406 # so that the return code can be evaluated if needed
@@ -391,6 +411,11 @@ jobs:
391411 # modules are currently not initializing the shell anyway
392412 if [ -n "$MODULESHOME" ]; then module unload mpi; fi
393413
414+ # A virtual env is mandatory under debian
415+ if [[ "${{ matrix.container }}" == "debian13" ]]; then
416+ source khiops-debian-venv/bin/activate
417+ fi
418+
394419 # Print status
395420 python -c \
396421 "import sys; import khiops.core as kh; return_code = kh.get_runner().print_status(); sys.exit(return_code)"
@@ -406,3 +431,6 @@ jobs:
406431
407432 # Execute Khiops sample (train and deploy model), which uses MPI
408433 python -m khiops.samples.samples -i deploy_model -e
434+ if [[ "${{ matrix.container }}" == "debian13" ]]; then
435+ deactivate
436+ fi
0 commit comments