Skip to content

Commit ae0cd57

Browse files
committed
add specific version
1 parent 384fcb6 commit ae0cd57

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.github/workflows/conda-package.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,22 @@ jobs:
101101
mkdir -p $GITHUB_WORKSPACE/channel/linux-64
102102
mv ${PACKAGE_NAME}-*.conda $GITHUB_WORKSPACE/channel/linux-64
103103
conda index $GITHUB_WORKSPACE/channel
104-
# Test channel
105-
conda search $PACKAGE_NAME -c $GITHUB_WORKSPACE/channel --override-channels
104+
105+
- name: Test conda channel
106+
run: |
107+
conda search $PACKAGE_NAME -c $GITHUB_WORKSPACE/channel --override-channels --info --json > $GITHUB_WORKSPACE/ver.json
108+
echo "Listing workspace:"
109+
ls -la
110+
cat $GITHUB_WORKSPACE/ver.json
111+
112+
- name: Get package version
113+
run: |
114+
echo "Listing workspace:"
115+
ls -la
116+
echo "Checking in GITHUB_WORKSPACE:"
117+
ls -la "$GITHUB_WORKSPACE"
118+
export PACKAGE_VERSION=$(python -c "${{ env.VER_SCRIPT1 }} ${{ env.VER_SCRIPT2 }}")
119+
echo PACKAGE_VERSION=${PACKAGE_VERSION}
106120
107121
- name: Collect dependencies
108122
run: |
@@ -132,7 +146,7 @@ jobs:
132146
run: |
133147
CHANNELS="-c $GITHUB_WORKSPACE/channel ${{ env.CHANNELS }}"
134148
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
149+
conda install -n ${{ env.TEST_ENV_NAME }} $PACKAGE_NAME=$PACKAGE_VERSION pytest $CHANNELS
136150
# Test installed packages
137151
conda list -n ${{ env.TEST_ENV_NAME }}
138152

0 commit comments

Comments
 (0)