Skip to content

Commit fafddfc

Browse files
author
Thierry RAMORASOAVINA
committed
Run the automated tests on rocky9 instead of ubuntu22.04 to avoid a lot of hacks
1 parent 80633d8 commit fafddfc

1 file changed

Lines changed: 3 additions & 12 deletions

File tree

.github/workflows/tests.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ concurrency:
3333
cancel-in-progress: true
3434
jobs:
3535
run:
36-
runs-on: ubuntu-22.04
36+
runs-on: ubuntu-22.04 # Github-Hosted runner which OS will be overridden
3737
strategy:
3838
fail-fast: false
3939
matrix:
@@ -43,7 +43,7 @@ jobs:
4343
# because the `env` context is only accessible at the step level;
4444
# hence, it is hard-coded
4545
image: |-
46-
ghcr.io/khiopsml/khiops-python/khiopspydev-ubuntu22.04:${{ inputs.image-tag || '11.0.0-a.2.0' }}
46+
ghcr.io/khiopsml/khiops-python/khiopspydev-rocky9:${{ inputs.image-tag || '11.0.0-a.2.0' }}
4747
credentials:
4848
username: ${{ github.actor }}
4949
password: ${{ secrets.GITHUB_TOKEN }}
@@ -92,7 +92,6 @@ jobs:
9292
done
9393
- name: Install khiops-python dependencies
9494
if: success() || failure()
95-
shell: bash
9695
run: |
9796
# The following git command is required,
9897
# as the Git repository is in a directory the current user does not own,
@@ -110,15 +109,7 @@ jobs:
110109
# Add homogeneous TOML support (Python >= 3.12 has standard tomllib)
111110
$CONDA install -y -n "$CONDA_ENV" tomli
112111
$CONDA run --no-capture-output -n "$CONDA_ENV" python scripts/extract_dependencies_from_pyproject_toml.py -f "pyproject.toml" > requires.txt
113-
if [[ "${{ matrix.python-version }}" == "3.8" ]]; then
114-
# for python3.8 a pinned version of python is required to avoid installation conflicts
115-
$CONDA install -y -n "$CONDA_ENV" `cat requires.txt` python=${{ matrix.python-version }} python_abi=${{ matrix.python-version }}
116-
elif [[ "${{ matrix.python-version }}" == "3.9" ]]; then
117-
# for python3.9 only, conda "forgets" the specific dev channel used for khiops-core
118-
$CONDA install -c khiops-dev -y -n "$CONDA_ENV" `cat requires.txt`
119-
else
120-
$CONDA install -y -n "$CONDA_ENV" `cat requires.txt`
121-
fi
112+
$CONDA install -y -n "$CONDA_ENV" `cat requires.txt`
122113
rm -f requires.txt
123114
done
124115
- name: Configure Expensive Tests Setting

0 commit comments

Comments
 (0)