Skip to content

Commit

Permalink
test [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-at-orange committed Sep 10, 2024
1 parent 5e42071 commit 7df72c2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
5 changes: 3 additions & 2 deletions .github/actions/test-khiops-on-iris/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ runs:
echo "KHIOPS_CC_SCRIPT=$KHIOPS_CC_SCRIPT" >> "$GITHUB_ENV"
echo "KHIOPS_BIN_DIR=$khiops_bin_dir" >> "$GITHUB_ENV"
else
echo ----
modl_path=$(which MODL)
echo "KHIOPS_SCRIPT=khiops" >> "$GITHUB_ENV"
echo "KHIOPS_CC_SCRIPT=khiops_coclustering" >> "$GITHUB_ENV"
khiops_bin_dir=$(dirname "$modl_path")
Expand Down Expand Up @@ -80,9 +82,8 @@ runs:
$PYTHON test/LearningTestTool/py/kht_apply.py test/LearningTest/TestKhiops/ParallelTask errors | tee -a results/errors.txt
$PYTHON test/LearningTestTool/py/kht_apply.py test/LearningTest/TestKhiops/SmallInstability errors | tee -a results/errors.txt
$PYTHON test/LearningTestTool/py/kht_apply.py test/LearningTest/TestKhiops/VariableConstruction errors | tee -a results/errors.txt
$PYTHON test/LearningTestTool/py/kht_collect.py test/LearningTest/TestKhiops/ results -collect-type warnings -f full-no-kni
$PYTHON test/LearningTestTool/py/kht_collect_results.py test/LearningTest/TestKhiops/ results --collect-type warnings -f full-no-kni
- name: Upload test results
if: failure()
uses: actions/upload-artifact@v3
with:
name: test-results-${{ runner.os }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ jobs:
MODL_Coclustering -v
- name: Checkout sources
uses: actions/checkout@v4
- name: Add CONDA_PREFIX to shared PATH
run: |
echo "$CONDA_PREFIX/bin" >> $GITHUB_PATH
- name: Test that khiops on Iris dataset
uses: ./.github/actions/test-khiops-on-iris
# Release is only executed on tags
Expand Down
12 changes: 6 additions & 6 deletions test/LearningTestTool/py/kht_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -925,12 +925,12 @@ def build_usage_help(
parser.error("argument --test-timeout-limit must be positive")

# Echec si le nombre de processus est parametre et mpiexec n'est pas dans le path
if args.n > 1 and shutil.which(mpi_exe_name) is None:
parser.error(
"argument -p/--processes: process number "
+ str(args.n)
+ " is greater than 1 but mpiexec not found in path."
)
# if args.n > 1 and shutil.which(mpi_exe_name) is None:
# parser.error(
# "argument -p/--processes: process number "
# + str(args.n)
# + " is greater than 1 but mpiexec not found in path."
# )

# Echec si on est en mode interactif des elements de configuration minimaux sont absents
if args.user_interface:
Expand Down

0 comments on commit 7df72c2

Please sign in to comment.