Visitar URL original
Add no-GIL interpreter support by clin1234 · Pull Request #641 · msgpack/msgpack-python · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Separate C extension and fallback tests for GIL and no-GIL interpreters
  • Loading branch information
clin1234 authored Aug 7, 2025
commit d0797bd27234a5a1e6fb62c49d10a349c1a9ea09
19 changes: 19 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,41 @@ jobs:
pip install -U pip
pip install -r requirements.txt pytest

- name: Install pytest-run-parallel under free-threading
if: contains(matrix.py, 't')
run: |
pip install pytest-run-parallel

- name: Build
shell: bash
run: |
make cython
pip install .

- name: Test (C extension)
if: ! contains(matrix.py, 't')
Comment thread
clin1234 marked this conversation as resolved.
Outdated
shell: bash
run: |
pytest -v test

- name: Test (pure Python fallback)
if: ! contains(matrix.py, 't')
Comment thread
clin1234 marked this conversation as resolved.
Outdated
shell: bash
run: |
MSGPACK_PUREPYTHON=1 pytest -v test

- name: Test (C extension) in parallel under free-threading
if: contains(matrix.py, 't')
shell: bash
run: |
pytest -v --parallel-threads=auto --iterations=20 test

- name: Test (pure Python fallback) in parallel under free-threading
if: contains(matrix.py, 't')
shell: bash
run: |
MSGPACK_PUREPYTHON=1 pytest -v --parallel-threads=auto --iterations=20 test

- name: build packages
shell: bash
run: |
Expand Down