mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-06 17:59:52 +00:00
44 lines
951 B
YAML
44 lines
951 B
YAML
name: Run tests
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
create:
|
|
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
|
|
py: ["3.12", "3.11", "3.10", "3.9", "3.8"]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
name: Run test with Python ${{ matrix.py }} on ${{ matrix.os }}
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: ${{ matrix.py }}
|
|
allow-prereleases: true
|
|
cache: "pip"
|
|
|
|
- name: Build
|
|
shell: bash
|
|
run: |
|
|
pip install -r requirements.txt pytest
|
|
make cython
|
|
pip install .
|
|
|
|
- name: Test (C extension)
|
|
shell: bash
|
|
run: |
|
|
pytest -v test
|
|
|
|
- name: Test (pure Python fallback)
|
|
shell: bash
|
|
run: |
|
|
MSGPACK_PUREPYTHON=1 pytest -v test
|