From 715f08d516f5769d699047a96ca79b43fc70c2d7 Mon Sep 17 00:00:00 2001 From: Popescu V <136721202+popescu-v@users.noreply.github.com> Date: Thu, 1 Aug 2024 17:17:01 +0200 Subject: [PATCH] Run automatic tests on Conda Miniforge-based environments --- .github/workflows/unit-tests.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 25647bda..f727cf66 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -70,11 +70,11 @@ jobs: mkdir -p -m u+rwx reports/py${{ matrix.python-version }}_conda # install within the conda environments without activating them # Native Khiops-based Conda environment - /root/miniconda3/bin/conda install -y -n py${{ matrix.python-version }} -c conda-forge unittest-xml-reporting - /root/miniconda3/bin/conda install -y -n py${{ matrix.python-version }} --file test-requirements.txt + /root/miniforge3/bin/conda install -y -n py${{ matrix.python-version }} unittest-xml-reporting + /root/miniforge3/bin/conda install -y -n py${{ matrix.python-version }} --file test-requirements.txt # `khiops-core`-based Conda environment - /root/miniconda3/bin/conda install -y -n py${{ matrix.python-version }}_conda -c conda-forge unittest-xml-reporting - /root/miniconda3/bin/conda install -y -n py${{ matrix.python-version }}_conda --file test-requirements.txt + /root/miniforge3/bin/conda install -y -n py${{ matrix.python-version }}_conda unittest-xml-reporting + /root/miniforge3/bin/conda install -y -n py${{ matrix.python-version }}_conda --file test-requirements.txt - name: Install khiops-python dependencies if: success() || failure() run: | @@ -83,11 +83,11 @@ jobs: # Python versioneer fails to compute the current version correctly otherwise git config --global --add safe.directory $(realpath .) # Native Khiops-based Conda environment - /root/miniconda3/bin/conda run --no-capture-output -n py${{ matrix.python-version }} python setup.py egg_info - /root/miniconda3/bin/conda install -y -n py${{ matrix.python-version }} `grep -v "^\[" khiops.egg-info/requires.txt` + /root/miniforge3/bin/conda run --no-capture-output -n py${{ matrix.python-version }} python setup.py egg_info + /root/miniforge3/bin/conda install -y -n py${{ matrix.python-version }} `grep -v "^\[" khiops.egg-info/requires.txt` # `khiops-core`-based Conda environment - /root/miniconda3/bin/conda run --no-capture-output -n py${{ matrix.python-version }}_conda python setup.py egg_info - /root/miniconda3/bin/conda install -y -n py${{ matrix.python-version }}_conda `grep -v "^\[" khiops.egg-info/requires.txt` + /root/miniforge3/bin/conda run --no-capture-output -n py${{ matrix.python-version }}_conda python setup.py egg_info + /root/miniforge3/bin/conda install -y -n py${{ matrix.python-version }}_conda `grep -v "^\[" khiops.egg-info/requires.txt` rm -rf khiops.egg-info - name: Prepare Unit Tests Environment if: github.ref != 'dev' && github.ref != 'main' && ! inputs.run-long-tests @@ -113,13 +113,13 @@ jobs: # version is retrieved git config --global --add safe.directory $(realpath .) # Native Khiops-based Conda environments - /root/miniconda3/bin/conda run --no-capture-output -n py${{ matrix.python-version }} coverage run -m xmlrunner -o "reports/py${{ matrix.python-version }}" -v - /root/miniconda3/bin/conda run --no-capture-output -n py${{ matrix.python-version }} coverage report -m - /root/miniconda3/bin/conda run --no-capture-output -n py${{ matrix.python-version }} coverage xml -o "reports/py${{ matrix.python-version }}/py-coverage.xml" + /root/miniforge3/bin/conda run --no-capture-output -n py${{ matrix.python-version }} coverage run -m xmlrunner -o "reports/py${{ matrix.python-version }}" -v + /root/miniforge3/bin/conda run --no-capture-output -n py${{ matrix.python-version }} coverage report -m + /root/miniforge3/bin/conda run --no-capture-output -n py${{ matrix.python-version }} coverage xml -o "reports/py${{ matrix.python-version }}/py-coverage.xml" # `khiops-core`-based Conda environments - /root/miniconda3/bin/conda run --no-capture-output -n py${{ matrix.python-version }}_conda coverage run -m xmlrunner -o "reports/py${{ matrix.python-version }}_conda" -v - /root/miniconda3/bin/conda run --no-capture-output -n py${{ matrix.python-version }}_conda coverage report -m - /root/miniconda3/bin/conda run --no-capture-output -n py${{ matrix.python-version }}_conda coverage xml -o "reports/py${{ matrix.python-version }}_conda/py-coverage.xml" + /root/miniforge3/bin/conda run --no-capture-output -n py${{ matrix.python-version }}_conda coverage run -m xmlrunner -o "reports/py${{ matrix.python-version }}_conda" -v + /root/miniforge3/bin/conda run --no-capture-output -n py${{ matrix.python-version }}_conda coverage report -m + /root/miniforge3/bin/conda run --no-capture-output -n py${{ matrix.python-version }}_conda coverage xml -o "reports/py${{ matrix.python-version }}_conda/py-coverage.xml" - name: Display Unit Test Reports uses: dorny/test-reporter@v1 with: