File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -101,8 +101,17 @@ jobs:
101
101
mkdir -p $GITHUB_WORKSPACE/channel/linux-64
102
102
mv ${PACKAGE_NAME}-*.conda $GITHUB_WORKSPACE/channel/linux-64
103
103
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
+ cat $GITHUB_WORKSPACE/ver.json
109
+
110
+ - name : Get package version
111
+ run : |
112
+ export PACKAGE_VERSION=$(python -c "${{ env.VER_SCRIPT1 }} ${{ env.VER_SCRIPT2 }}")
113
+ echo PACKAGE_VERSION=${PACKAGE_VERSION}
114
+ echo "PACKAGE_VERSION=$PACKAGE_VERSION" >> $GITHUB_ENV
106
115
107
116
- name : Collect dependencies
108
117
run : |
@@ -131,8 +140,7 @@ jobs:
131
140
- name : Install mkl_fft
132
141
run : |
133
142
CHANNELS="-c $GITHUB_WORKSPACE/channel ${{ env.CHANNELS }}"
134
- 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
143
+ conda create -n ${{ env.TEST_ENV_NAME }} $PACKAGE_NAME=${{ env.PACKAGE_VERSION }} python=${{ matrix.python }} pytest "scipy>=1.10" $CHANNELS
136
144
# Test installed packages
137
145
conda list -n ${{ env.TEST_ENV_NAME }}
138
146
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ requirements:
20
20
- python
21
21
- setuptools >=77
22
22
- mkl-devel
23
+ - mkl-devel 2024.2.* # [py==39 or py==310]
23
24
- cython
24
25
- numpy-base
25
26
run :
You can’t perform that action at this time.
0 commit comments