Skip to content

Commit 974057c

Browse files
committed
install exact version in CI conda-verify step
1 parent f85949c commit 974057c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/test_and_deploy.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,16 @@ jobs:
7878
pixi run conda-build
7979
mkdir -p /tmp/local-channel/linux-64
8080
cp *.conda /tmp/local-channel/linux-64
81+
# extract version from the package file name "quicknxs-<version>-<build>.conda"
82+
echo "PKG_VERSION=$(ls *.conda | cut -d'-' -f2)" >> $GITHUB_ENV
8183
8284
- name: Verify Conda Package
8385
uses: neutrons/conda-verify@v0.1.2
8486
with:
8587
python-version: "3.11"
8688
local-channel: /tmp/local-channel
87-
package-name: ${{ env.PKG_NAME }}
88-
extra-channels: mantid-ornl mantid neutrons oncat
89+
package-name: ${{ env.PKG_NAME }}=${{ env.PKG_VERSION }} # install exact version
90+
extra-channels: neutrons mantid oncat
8991
extra-commands: |
9092
python -c "import mr_reduction"
9193
python -c "import mantid"

0 commit comments

Comments
 (0)