Skip to content

Commit 9da8407

Browse files
committed
add specific version
1 parent 384fcb6 commit 9da8407

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/conda-package.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,19 @@ jobs:
130130
131131
- name: Install mkl_fft
132132
run: |
133+
echo "Listing workspace:"
134+
ls -la
135+
echo "Checking in env.workdir:"
136+
ls -la "$GITHUB_WORKSPACE"
137+
if [ ! -f ver.json ]; then
138+
cp -f "$GITHUB_WORKSPACE/ver.json" .
139+
fi
140+
SCRIPT="$VER_SCRIPT1 $VER_SCRIPT2"
141+
PACKAGE_VERSION=$(python -c "$SCRIPT")
142+
echo "PACKAGE_VERSION=$PACKAGE_VERSION"
133143
CHANNELS="-c $GITHUB_WORKSPACE/channel ${{ env.CHANNELS }}"
134144
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
145+
conda install -n ${{ env.TEST_ENV_NAME }} $PACKAGE_NAME=$PACKAGE_VERSION pytest $CHANNELS
136146
# Test installed packages
137147
conda list -n ${{ env.TEST_ENV_NAME }}
138148

0 commit comments

Comments
 (0)