Skip to content

Commit b7a07fa

Browse files
Giving up on pytest 8 on Windows, pinning <8
1 parent 4441b9f commit b7a07fa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/conda-package.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,9 @@ jobs:
292292
FOR /F "tokens=* USEBACKQ" %%F IN (`python -c "%SCRIPT%"`) DO (
293293
SET PACKAGE_VERSION=%%F
294294
)
295-
SET "TEST_DEPENDENCIES=pytest pytest-cov cython"
296-
conda install -n ${{ env.TEST_ENV_NAME }} ${{ env.PACKAGE_NAME }}=%PACKAGE_VERSION% %TEST_DEPENDENCIES% python=${{ matrix.python }} -c ${{ env.workdir }}/channel ${{ env.CHANNELS }}
295+
REM "Use ^ character to escape <"
296+
SET "TEST_DEPENDENCIES=pytest"^<8" pytest-cov cython"
297+
conda install -n ${{ env.TEST_ENV_NAME }} ${{ env.PACKAGE_NAME }}=%PACKAGE_VERSION% "%TEST_DEPENDENCIES%" python=${{ matrix.python }} -c ${{ env.workdir }}/channel ${{ env.CHANNELS }}
297298
- name: Report content of test environment
298299
shell: cmd /C CALL {0}
299300
run: |

0 commit comments

Comments
 (0)