@@ -45,22 +45,22 @@ jobs:
4545 ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-
4646
4747 - name : Add conda to system path
48- run : echo $CONDA/bin >> $GITHUB_PATH
48+ run : echo " $CONDA/bin" >> " $GITHUB_PATH"
4949
5050 - name : Install conda-build
5151 run : conda install conda-build
5252
5353 - name : Build conda package
5454 run : |
55- CHANNELS=" -c https://software.repos.intel.com/python/conda -c conda-forge --override-channels"
56- VERSIONS=" --python ${{ matrix.python }}"
57- TEST=" --no-test"
58- echo "CONDA_BLD=${CONDA}/conda-bld/linux-64" >> $GITHUB_ENV
55+ CHANNELS=( -c " https://software.repos.intel.com/python/conda" -c " conda-forge" --override-channels)
56+ VERSIONS=( --python " ${{ matrix.python }}")
57+ TEST=( --no-test)
58+ echo "CONDA_BLD=${CONDA}/conda-bld/linux-64" >> " $GITHUB_ENV"
5959
6060 conda build \
61- $ TEST \
62- $ VERSIONS \
63- $ CHANNELS \
61+ "${ TEST[@]}" \
62+ "${ VERSIONS[@]}" \
63+ "${ CHANNELS[@]}" \
6464 conda-recipe
6565
6666 - name : Upload artifact
@@ -88,21 +88,21 @@ jobs:
8888 with :
8989 name : ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
9090 - name : Add conda to system path
91- run : echo $CONDA/bin >> $GITHUB_PATH
91+ run : echo " $CONDA/bin" >> " $GITHUB_PATH"
9292 - name : Install conda-build
9393 run : conda install conda-build
9494 - name : Create conda channel
9595 run : |
96- mkdir -p $GITHUB_WORKSPACE/channel/linux-64
97- mv ${PACKAGE_NAME}-*.conda $GITHUB_WORKSPACE/channel/linux-64
98- conda index $GITHUB_WORKSPACE/channel
96+ mkdir -p " $GITHUB_WORKSPACE/channel/linux-64"
97+ mv " ${PACKAGE_NAME}" -*.conda " $GITHUB_WORKSPACE/channel/linux-64"
98+ conda index " $GITHUB_WORKSPACE/channel"
9999 # Test channel
100- conda search $PACKAGE_NAME -c $GITHUB_WORKSPACE/channel --override-channels
100+ conda search " $PACKAGE_NAME" -c " $GITHUB_WORKSPACE/channel" --override-channels
101101
102102 - name : Collect dependencies
103103 run : |
104- CHANNELS=" -c $GITHUB_WORKSPACE/channel ${{ env.CHANNELS }}"
105- conda create -n test_mkl_umath $PACKAGE_NAME python=${{ matrix.python }} $ CHANNELS --only-deps --dry-run > lockfile
104+ CHANNELS=( -c " $GITHUB_WORKSPACE/channel" -c "https://software.repos.intel.com/python/conda" -c "conda-forge" --override-channels)
105+ conda create -n test_mkl_umath " $PACKAGE_NAME" " python=${{ matrix.python }}" "${ CHANNELS[@]}" --only-deps --dry-run > lockfile
106106 - name : Display lockfile
107107 run : cat lockfile
108108
@@ -124,20 +124,20 @@ jobs:
124124
125125 - name : Install mkl_umath
126126 run : |
127- CHANNELS=" -c $GITHUB_WORKSPACE/channel ${{ env.CHANNELS }}"
128- conda create -n test_mkl_umath python=${{ matrix.python }} $PACKAGE_NAME pytest $ CHANNELS
127+ CHANNELS=( -c " $GITHUB_WORKSPACE/channel" -c "https://software.repos.intel.com/python/conda" -c "conda-forge" --override-channels)
128+ conda create -n test_mkl_umath " python=${{ matrix.python }}" " $PACKAGE_NAME" pytest "${ CHANNELS[@]}"
129129 # Test installed packages
130130 conda list -n test_mkl_umath
131131
132132 - name : Smoke test
133133 run : |
134- source $CONDA/etc/profile.d/conda.sh
134+ source " $CONDA/etc/profile.d/conda.sh"
135135 conda activate test_mkl_umath
136136 python -c "import mkl_umath, numpy as np; mkl_umath.use_in_numpy(); np.sin(np.linspace(0, 1, num=10**6));"
137137
138138 - name : Run tests
139139 run : |
140- source $CONDA/etc/profile.d/conda.sh
140+ source " $CONDA/etc/profile.d/conda.sh"
141141 conda activate test_mkl_umath
142142 pytest -v --pyargs ${{ env.PACKAGE_NAME }}
143143
@@ -182,7 +182,7 @@ jobs:
182182 - name : Store conda paths as envs
183183 shell : bash -l {0}
184184 run : |
185- echo "CONDA_BLD=$CONDA/conda-bld/win-64/" | tr "\\\\" '/' >> $GITHUB_ENV
185+ echo "CONDA_BLD=$CONDA/conda-bld/win-64/" | tr "\\\\" '/' >> " $GITHUB_ENV"
186186
187187 - name : Install conda build
188188 run : |
0 commit comments