diff options
| author | Inada Naoki <songofacandy@gmail.com> | 2021-11-25 14:43:55 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-25 14:43:55 +0900 |
| commit | bdf0511e29b02427437b03e7d8454bd5076e837f (patch) | |
| tree | 2ec378629c48b23468dc4f5f7f6df46af9d712a0 /.github/workflows/test.yml | |
| parent | 6129789e9f6ebccdb19b23c2cd1dc9551e57fc53 (diff) | |
| download | msgpack-python-bdf0511e29b02427437b03e7d8454bd5076e837f.tar.gz | |
Refactor CI (#492)
* Use cibuildwheel to build wheels.
* Use matrix
Diffstat (limited to '.github/workflows/test.yml')
| -rw-r--r-- | .github/workflows/test.yml | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..6e497e0 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,45 @@ +name: Run tests +on: + push: + branches: [main] + pull_request: + create: + +jobs: + test: + strategy: + matrix: + os: [ubuntu-20.04, windows-2022, macos-10.15] + py: ["3.10", "3.9", "3.8", "3.7", "3.6"] + + runs-on: ${{ matrix.os }} + name: Run test with Python ${{ matrix.py }} on ${{ matrix.os }} + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.py }} + cache: "pip" + + - name: Build + shell: bash + run: | + pip install -U pip + 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 + |
