@@ -39,19 +39,18 @@ jobs:
39
39
# Checkout the full repository to have the tags so versioneer works properly
40
40
# See issue https://github.com/actions/checkout/issues/701
41
41
fetch-depth : 0
42
- - name : Install Miniconda
42
+ - name : Install Miniforge
43
43
uses : conda-incubator/setup-miniconda@v3
44
44
with :
45
- miniconda -version : latest
45
+ miniforge -version : latest
46
46
python-version : ' 3.12'
47
47
- name : Install Dependency Requirements for Building Conda Packages
48
48
run : conda install -y conda-build
49
49
- name : Build the Conda Package
50
50
# Note: The "khiops-dev" conda channel is needed to retrieve the "khiops-core" package.
51
51
# The "test" part of the conda recipe needs this package.
52
52
run : |
53
- conda build --channel conda-forge --channel khiops-dev \
54
- --output-folder ./khiops-conda ./packaging/conda
53
+ conda build --channel khiops-dev --output-folder ./khiops-conda ./packaging/conda
55
54
- name : Upload Conda Package Artifact
56
55
uses : actions/upload-artifact@v4
57
56
with :
@@ -78,10 +77,10 @@ jobs:
78
77
runs-on : ${{ matrix.env.os }}
79
78
container : ${{ fromJSON(matrix.env.json-image) }}
80
79
steps :
81
- - name : Install Miniconda
80
+ - name : Install Miniforge
82
81
uses : conda-incubator/setup-miniconda@v3
83
82
with :
84
- miniconda -version : latest # needed for macOS 13
83
+ miniforge -version : latest # needed for macOS 13
85
84
python-version : ${{ matrix.python-version }}
86
85
- name : Download Conda Package Artifact
87
86
uses : actions/download-artifact@v4
92
91
run : |
93
92
KHIOPS_CORE_VERSION="${{ inputs.khiops-core-version || env.DEFAULT_KHIOPS_CORE_VERSION }}"
94
93
echo "KHIOPS_CORE_VERSION=$KHIOPS_CORE_VERSION" >> "$GITHUB_ENV"
95
- - name : Install the Khiops Conda package (Windows)
96
- if : runner.os == 'Windows'
94
+ - name : Install the Khiops Conda package
97
95
run : |
98
96
conda install --channel khiops-dev khiops-core=$KHIOPS_CORE_VERSION
99
- conda install --override-channels --channel conda-forge --channel ./khiops-conda/ khiops
100
- # In Linux/macOS we need the conda-forge channel to install their pinned versions
101
- - name : Install the Khiops Conda package (Linux/macOS)
102
- if : runner.os != 'Windows'
103
- run : |
104
- conda install --channel conda-forge --channel khiops-dev khiops-core=$KHIOPS_CORE_VERSION
105
97
conda install --channel ./khiops-conda/ khiops
106
98
- name : Test Khiops Installation Status
107
99
run : kh-status
@@ -135,10 +127,10 @@ jobs:
135
127
# See the upload-artifact step in the build job for the explanation of this pattern
136
128
name : khiops-conda
137
129
path : ./khiops-conda
138
- - name : Install Miniconda
130
+ - name : Install Miniforge
139
131
uses : conda-incubator/setup-miniconda@v3
140
132
with :
141
- miniconda -version : latest
133
+ miniforge -version : latest
142
134
python-version : ' 3.12'
143
135
- name : Install Requirement Packages
144
136
run : conda install -y anaconda-client conda-index
0 commit comments