File: test.yml

package info (click to toggle)
python-msgpack 1.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 460 kB
  • sloc: python: 2,041; ansic: 1,431; makefile: 190; sh: 36
file content (65 lines) | stat: -rw-r--r-- 1,493 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Run tests
on:
  push:
    branches: [main]
  pull_request:
  create:

jobs:
  test:
    strategy:
      matrix:
        os: ["ubuntu-latest", "windows-latest", "windows-11-arm", "macos-latest"]
        py: ["3.14-dev", "3.13", "3.12", "3.11", "3.10", "3.9"]
        exclude:
          - os: windows-11-arm
            py: "3.9"
          - os: windows-11-arm
            py: "3.10"
    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@v5
        with:
          python-version: ${{ matrix.py }}
          allow-prereleases: true
          cache: "pip"

      - name: Prepare
        shell: bash
        run: |
          python -m pip install -U pip
          python -m pip install -r requirements.txt pytest

      - name: Build
        shell: bash
        run: |
          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

      - name: build packages
        shell: bash
        run: |
          pip install build
          python -m build

      - name: upload packages
        uses: actions/upload-artifact@v4
        with:
          name: dist-${{ matrix.os }}-${{ matrix.py }}
          path: dist