Skip to content

Commit

Permalink
simplify getting prerelease Cython for free-threaded tests
Browse files Browse the repository at this point in the history
set pip environment variables
  • Loading branch information
minrk committed Aug 2, 2024
1 parent f1b0d8d commit 9ac4bce
Showing 1 changed file with 3 additions and 19 deletions.
22 changes: 3 additions & 19 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,11 @@ jobs:
echo $PATH
echo "PATH=$PATH" >> "$GITHUB_ENV"
echo "PYTHON_GIL=0" >> "$GITHUB_ENV"
# need prerelease Cython until 3.1 is out
echo "PIP_PRE=1" >> "$GITHUB_ENV"
echo "PIP_EXTRA_INDEX_URL=https://pypi.anaconda.org/scientific-python-nightly-wheels/simple" >> "$GITHUB_ENV"
shell: micromamba-shell {0}



- name: setup coverage
if: startsWith(matrix.python, 'pypy') || startsWith(matrix.python, '3.12')
run: |
Expand All @@ -158,17 +159,6 @@ jobs:
run: |
pip install --upgrade pip wheel
pip install -r test-requirements.txt
- name: install free-threading dependencies
if: ${{ matrix.free_threading }}
run: |
conda info
which -a python
which -a pip
# need build deps for no-build-isolation
# remove after Cython 3.1
pip install scikit-build-core ninja packaging
pip install --upgrade --pre -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple cython
- name: remove tornado
if: matrix.tornado == 'none'
Expand Down Expand Up @@ -222,15 +212,9 @@ jobs:
echo ZMQ_DRAFT_API=1 >> "$GITHUB_ENV"
- name: build pyzmq
if: ${{ !matrix.free_threading }}
run: |
pip install -v -e .
- name: build pyzmq (free threading)
if: ${{ matrix.free_threading }}
run: |
pip install -v --no-build-isolation .
- name: import zmq
run: |
python -I -c "import zmq"
Expand Down

0 comments on commit 9ac4bce

Please sign in to comment.