@@ -49,26 +49,26 @@ jobs:
4949 ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-
5050
5151 - name : Add conda to system path
52- run : echo $CONDA/bin >> $GITHUB_PATH
52+ run : echo " $CONDA/bin" >> " $GITHUB_PATH"
5353
5454 - name : Install conda-build
5555 run : conda install conda-build
5656
5757 - name : Store conda paths as envs
5858 shell : bash -el {0}
5959 run : |
60- echo "CONDA_BLD=/usr/share/miniconda/conda-bld/linux-64/" >> $GITHUB_ENV
60+ echo "CONDA_BLD=/usr/share/miniconda/conda-bld/linux-64/" >> " $GITHUB_ENV"
6161
6262 - name : Build conda package
6363 run : |
64- CHANNELS=" -c https://software.repos.intel.com/python/conda -c conda-forge --override-channels"
65- VERSIONS=" --python ${{ matrix.python }}"
66- TEST=" --no-test"
64+ CHANNELS=( -c https://software.repos.intel.com/python/conda -c conda-forge --override-channels)
65+ VERSIONS=( --python " ${{ matrix.python }}")
66+ TEST=( --no-test)
6767
6868 conda build \
69- $ TEST \
70- $ VERSIONS \
71- $ CHANNELS \
69+ "${ TEST[@]}" \
70+ "${ VERSIONS[@]}" \
71+ "${ CHANNELS[@]}" \
7272 conda-recipe
7373
7474 - name : Upload artifact
@@ -120,10 +120,10 @@ jobs:
120120 - name : Store conda paths as envs
121121 shell : bash -el {0}
122122 run : |
123- echo "CONDA_BLD=$CONDA_PREFIX\\conda-bld\\win-64\\" >> $GITHUB_ENV
123+ echo "CONDA_BLD=${ CONDA_PREFIX} \\conda-bld\\win-64\\" >> " $GITHUB_ENV"
124124
125125 - name : Build conda package
126- run : conda build --no-test --python ${{ matrix.python }} -c https://software.repos.intel.com/python/conda -c conda-forge --override-channels conda-recipe
126+ run : conda build --no-test --python " ${{ matrix.python }}" -c https://software.repos.intel.com/python/conda -c conda-forge --override-channels conda-recipe
127127
128128 - name : Upload artifact
129129 uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
@@ -160,27 +160,27 @@ jobs:
160160 name : ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
161161
162162 - name : Add conda to system path
163- run : echo $CONDA/bin >> $GITHUB_PATH
163+ run : echo " $CONDA/bin" >> " $GITHUB_PATH"
164164
165165 - name : Install conda-build
166166 run : conda install conda-build
167167
168168 - name : Create conda channel
169169 run : |
170- mkdir -p $GITHUB_WORKSPACE/channel/linux-64
171- conda index $GITHUB_WORKSPACE/channel || exit 1
172- mv ${PACKAGE_NAME}-*.conda $GITHUB_WORKSPACE/channel/linux-64 || exit 1
173- conda index $GITHUB_WORKSPACE/channel || exit 1
170+ mkdir -p " $GITHUB_WORKSPACE/channel/linux-64"
171+ conda index " $GITHUB_WORKSPACE/channel" || exit 1
172+ mv " ${PACKAGE_NAME}" -*.conda " $GITHUB_WORKSPACE/channel/linux-64" || exit 1
173+ conda index " $GITHUB_WORKSPACE/channel" || exit 1
174174 # Test channel
175- conda search $PACKAGE_NAME -c $GITHUB_WORKSPACE/channel --override-channels --info --json > $GITHUB_WORKSPACE/ver.json
175+ conda search " $PACKAGE_NAME" -c " $GITHUB_WORKSPACE/channel" --override-channels --info --json > " $GITHUB_WORKSPACE/ver.json"
176176 cat ver.json
177177
178178 - name : Collect dependencies
179179 run : |
180- . $CONDA/etc/profile.d/conda.sh
181- CHANNELS=" -c $GITHUB_WORKSPACE/channel ${{ env.CHANNELS }} "
182- export PACKAGE_VERSION=$(python -c "${VER_SCRIPT1} ${VER_SCRIPT2}")
183- conda create -n ${{ env.TEST_ENV_NAME }} $ PACKAGE_NAME=${PACKAGE_VERSION} python=${{ matrix.python }} numpy=${{ matrix.numpy }} $CHANNELS --only-deps --dry-run > lockfile
180+ . " $CONDA/etc/profile.d/conda.sh"
181+ PACKAGE_VERSION="$(python -c "${VER_SCRIPT1} ${VER_SCRIPT2}") "
182+ export PACKAGE_VERSION
183+ conda create -n " ${{ env.TEST_ENV_NAME }}" "${ PACKAGE_NAME} =${PACKAGE_VERSION}" " python=${{ matrix.python }}" " numpy=${{ matrix.numpy }}" -c "$GITHUB_WORKSPACE/channel" -c https://software.repos.intel.com/python/conda -c conda-forge --override-channels --only-deps --dry-run > lockfile
184184 cat lockfile
185185
186186 - name : Set pkgs_dirs
@@ -201,19 +201,19 @@ jobs:
201201
202202 - name : Install mkl_random
203203 run : |
204- . $CONDA/etc/profile.d/conda.sh
205- CHANNELS=" -c $GITHUB_WORKSPACE/channel ${{ env.CHANNELS }} "
206- export PACKAGE_VERSION=$(python -c "${VER_SCRIPT1} ${VER_SCRIPT2}")
207- conda create -n ${{ env.TEST_ENV_NAME }} $ PACKAGE_NAME=${PACKAGE_VERSION} pytest python=${{ matrix.python }} numpy=${{ matrix.numpy }} $CHANNELS
208- conda activate ${{ env.TEST_ENV_NAME }}
204+ . " $CONDA/etc/profile.d/conda.sh"
205+ PACKAGE_VERSION="$(python -c "${VER_SCRIPT1} ${VER_SCRIPT2}") "
206+ export PACKAGE_VERSION
207+ conda create -n " ${{ env.TEST_ENV_NAME }}" "${ PACKAGE_NAME} =${PACKAGE_VERSION}" pytest " python=${{ matrix.python }}" " numpy=${{ matrix.numpy }}" -c "$GITHUB_WORKSPACE/channel" -c https://software.repos.intel.com/python/conda -c conda-forge --override-channels
208+ conda activate " ${{ env.TEST_ENV_NAME }}"
209209
210210 # Test installed packages
211211 conda list
212212
213213 - name : Run tests
214214 run : |
215- . $CONDA/etc/profile.d/conda.sh
216- conda activate ${{ env.TEST_ENV_NAME }}
215+ . " $CONDA/etc/profile.d/conda.sh"
216+ conda activate " ${{ env.TEST_ENV_NAME }}"
217217 pytest -vv --pyargs ${{ env.MODULE_NAME }}
218218
219219 test_windows :
@@ -259,7 +259,7 @@ jobs:
259259 run : |
260260 mkdir ${{ env.GITHUB_WORKSPACE }}\channel\win-64
261261 move ${{ env.PACKAGE_NAME }}-*.conda ${{ env.GITHUB_WORKSPACE }}\channel\win-64
262- python -m conda_index ${{ env.GITHUB_WORKSPACE }}/channel
262+ python -m conda_index " ${{ env.GITHUB_WORKSPACE }}/channel"
263263
264264 # Test channel
265265 conda search ${{ env.PACKAGE_NAME }} -c ${{ env.GITHUB_WORKSPACE }}/channel --override-channels --info --json > ${{ env.GITHUB_WORKSPACE }}\ver.json
@@ -309,5 +309,5 @@ jobs:
309309
310310 - name : Run tests
311311 run : |
312- conda activate -n ${{ env.TEST_ENV_NAME }}
312+ conda activate -n " ${{ env.TEST_ENV_NAME }}"
313313 pytest -v --pyargs ${{ env.MODULE_NAME }}
0 commit comments