Skip to content

Commit

Permalink
Run automatic tests on Conda Miniforge-based environments
Browse files Browse the repository at this point in the history
  • Loading branch information
popescu-v committed Aug 28, 2024
1 parent 7a31e4b commit 715f08d
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 715f08d

Please sign in to comment.