Skip to content

Commit

Permalink
Giving up on pytest 8 on Windows, pinning <8
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksandr-pavlyk committed Feb 27, 2024
1 parent 4441b9f commit b7a07fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/conda-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,9 @@ jobs:
FOR /F "tokens=* USEBACKQ" %%F IN (`python -c "%SCRIPT%"`) DO (
SET PACKAGE_VERSION=%%F
)
SET "TEST_DEPENDENCIES=pytest pytest-cov cython"
conda install -n ${{ env.TEST_ENV_NAME }} ${{ env.PACKAGE_NAME }}=%PACKAGE_VERSION% %TEST_DEPENDENCIES% python=${{ matrix.python }} -c ${{ env.workdir }}/channel ${{ env.CHANNELS }}
REM "Use ^ character to escape <"
SET "TEST_DEPENDENCIES=pytest"^<8" pytest-cov cython"
conda install -n ${{ env.TEST_ENV_NAME }} ${{ env.PACKAGE_NAME }}=%PACKAGE_VERSION% "%TEST_DEPENDENCIES%" python=${{ matrix.python }} -c ${{ env.workdir }}/channel ${{ env.CHANNELS }}
- name: Report content of test environment
shell: cmd /C CALL {0}
run: |
Expand Down

0 comments on commit b7a07fa

Please sign in to comment.