mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-11-01 10:00:54 +00:00
Separate C extension and fallback tests for GIL and no-GIL interpreters
This commit is contained in:
parent
42f4cba85e
commit
d0797bd272
1 changed files with 19 additions and 0 deletions
19
.github/workflows/test.yml
vendored
19
.github/workflows/test.yml
vendored
|
|
@ -32,6 +32,11 @@ 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: |
|
||||
|
|
@ -39,15 +44,29 @@ jobs:
|
|||
pip install .
|
||||
|
||||
- name: Test (C extension)
|
||||
if: ! contains(matrix.py, 't')
|
||||
shell: bash
|
||||
run: |
|
||||
pytest -v test
|
||||
|
||||
- name: Test (pure Python fallback)
|
||||
if: ! contains(matrix.py, 't')
|
||||
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: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue