mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-07 02:09:59 +00:00
Merge 80191651eb into f9806368ae
This commit is contained in:
commit
7a06eb2060
2 changed files with 71 additions and 0 deletions
20
.github/workflows/test.yml
vendored
20
.github/workflows/test.yml
vendored
|
|
@ -14,6 +14,7 @@ jobs:
|
|||
exclude:
|
||||
- os: windows-11-arm
|
||||
py: "3.10"
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
name: Run test with Python ${{ matrix.py }} on ${{ matrix.os }}
|
||||
|
||||
|
|
@ -33,6 +34,11 @@ jobs:
|
|||
run: |
|
||||
python -m 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: |
|
||||
|
|
@ -40,15 +46,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