Skip to content

Commit 12a4f3d

Browse files
committed
add specific version
1 parent 384fcb6 commit 12a4f3d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/conda-package.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,14 @@ jobs:
130130
131131
- name: Install mkl_fft
132132
run: |
133+
if [ ! -f ver.json ]; then
134+
cp -f "$GITHUB_WORKSPACE/ver.json" .
135+
fi
136+
SCRIPT="$VER_SCRIPT1 $VER_SCRIPT2"
137+
PACKAGE_VERSION=$(python -c "$SCRIPT")
133138
CHANNELS="-c $GITHUB_WORKSPACE/channel ${{ env.CHANNELS }}"
134139
conda create -n ${{ env.TEST_ENV_NAME }} python=${{ matrix.python }} "scipy>=1.10" $CHANNELS
135-
conda install -n ${{ env.TEST_ENV_NAME }} $PACKAGE_NAME pytest $CHANNELS
140+
conda install -n ${{ env.TEST_ENV_NAME }} $PACKAGE_NAME=$PACKAGE_VERSION pytest $CHANNELS
136141
# Test installed packages
137142
conda list -n ${{ env.TEST_ENV_NAME }}
138143

0 commit comments

Comments
 (0)