Skip to content

Commit 508f13d

Browse files
Require numpy 1.26* in test environment for now
1 parent d929a95 commit 508f13d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/conda-package.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ jobs:
103103
strategy:
104104
matrix:
105105
python: ['3.9', '3.10']
106+
numpy: ['1.26*']
106107
experimental: [false]
107108
runner: [ubuntu-latest]
108109
continue-on-error: ${{ matrix.experimental }}
@@ -132,7 +133,7 @@ jobs:
132133
. $CONDA/etc/profile.d/conda.sh
133134
CHANNELS="-c $GITHUB_WORKSPACE/channel ${{ env.CHANNELS }}"
134135
export PACKAGE_VERSION=$(python -c "${VER_SCRIPT1} ${VER_SCRIPT2}")
135-
conda create -n ${{ env.TEST_ENV_NAME }} $PACKAGE_NAME=${PACKAGE_VERSION} python=${{ matrix.python }} $CHANNELS --only-deps --dry-run > lockfile
136+
conda create -n ${{ env.TEST_ENV_NAME }} $PACKAGE_NAME=${PACKAGE_VERSION} python=${{ matrix.python }} numpy=${{ matrix.numpy }} $CHANNELS --only-deps --dry-run > lockfile
136137
cat lockfile
137138
- name: Set pkgs_dirs
138139
run: |
@@ -154,7 +155,7 @@ jobs:
154155
. $CONDA/etc/profile.d/conda.sh
155156
CHANNELS="-c $GITHUB_WORKSPACE/channel ${{ env.CHANNELS }}"
156157
export PACKAGE_VERSION=$(python -c "${VER_SCRIPT1} ${VER_SCRIPT2}")
157-
conda create -n ${{ env.TEST_ENV_NAME }} $PACKAGE_NAME=${PACKAGE_VERSION} pytest python=${{ matrix.python }} $CHANNELS
158+
conda create -n ${{ env.TEST_ENV_NAME }} $PACKAGE_NAME=${PACKAGE_VERSION} pytest python=${{ matrix.python }} numpy=${{ matrix.numpy }} $CHANNELS
158159
# Test installed packages
159160
conda list
160161
- name: Run tests
@@ -170,6 +171,7 @@ jobs:
170171
strategy:
171172
matrix:
172173
python: ['3.9', '3.10']
174+
numpy: ['1.26*']
173175
experimental: [false]
174176
runner: [windows-2019]
175177
continue-on-error: ${{ matrix.experimental }}
@@ -205,7 +207,7 @@ jobs:
205207
FOR /F "tokens=* USEBACKQ" %%F IN (`python -c "%SCRIPT%"`) DO (
206208
SET PACKAGE_VERSION=%%F
207209
)
208-
conda create -n ${{ env.TEST_ENV_NAME }} ${{ env.PACKAGE_NAME }}=%PACKAGE_VERSION% python=${{ matrix.python }} -c ${{ env.GITHUB_WORKSPACE }}/channel ${{ env.CHANNELS }} --only-deps --dry-run > lockfile
210+
conda create -n ${{ env.TEST_ENV_NAME }} ${{ env.PACKAGE_NAME }}=%PACKAGE_VERSION% python=${{ matrix.python }} numpy=${{ matrix.numpy }} -c ${{ env.GITHUB_WORKSPACE }}/channel ${{ env.CHANNELS }} --only-deps --dry-run > lockfile
209211
more lockfile
210212
- name: Cache conda packages
211213
uses: actions/cache@v4
@@ -227,7 +229,7 @@ jobs:
227229
FOR /F "tokens=* USEBACKQ" %%F IN (`python -c "%SCRIPT%"`) DO (
228230
SET PACKAGE_VERSION=%%F
229231
)
230-
conda create -n ${{ env.TEST_ENV_NAME }} ${{ env.PACKAGE_NAME }}=%PACKAGE_VERSION% pytest python=${{ matrix.python }} -c ${{ env.GITHUB_WORKSPACE }}/channel ${{ env.CHANNELS }}
232+
conda create -n ${{ env.TEST_ENV_NAME }} ${{ env.PACKAGE_NAME }}=%PACKAGE_VERSION% pytest python=${{ matrix.python }} numpy=${{ matrix.numpy }} -c ${{ env.GITHUB_WORKSPACE }}/channel ${{ env.CHANNELS }}
231233
# Test installed packages
232234
conda list
233235
- name: Run tests

0 commit comments

Comments
 (0)