summaryrefslogtreecommitdiff
path: root/.github/workflows/linux.yml
blob: 811bc13d27d56714ae5b211d41facbbe4c35f7bd (plain)
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: Build Linux Wheels
on:
  push:
  pull_request:
  create:

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v1

      - name: Set up Python 3.8
        uses: actions/setup-python@v1
        with:
          python-version: 3.8

      - name: Cythonize
        shell: bash
        run: |
          pip install -U pip
          pip -V
          pip install -r requirements.txt
          make cython
          #python setup.py sdist

      - name: Build wheels
        shell: bash
        run: |
          make linux-wheel

      - name: Install qemu-user-static for docker
        shell: bash
        run: |
          docker run --rm --privileged multiarch/qemu-user-static --reset -p yes

      - name: Build arm64 wheels
        shell: bash
        run: |
          make linux-arm64-wheel

      - name: Run test (3.8)
        run: |
          pip install pytest
          pip install -v msgpack --only-binary :all: --no-index -f dist/wheelhouse
          pytest -v test


      - name: Set up Python 3.10
        uses: actions/setup-python@v1
        with:
          python-version: "3.10"

      - name: Run test (3.10)
        run: |
          pip install pytest
          pip install -v msgpack --only-binary :all: --no-index -f dist/wheelhouse
          pytest -v test

      - name: Set up Python 3.9
        uses: actions/setup-python@v1
        with:
          python-version: 3.9

      - name: Run test (3.9)
        run: |
          pip install pytest
          pip install -v msgpack --only-binary :all: --no-index -f dist/wheelhouse
          pytest -v test

      - name: Set up Python 3.7
        uses: actions/setup-python@v1
        with:
          python-version: 3.7

      - name: Run test (3.7)
        run: |
          pip install pytest
          pip install -v msgpack --only-binary :all: --no-index -f dist/wheelhouse
          pytest -v test

      - name: Set up Python 3.6
        uses: actions/setup-python@v1
        with:
          python-version: 3.6

      - name: Run test (3.6)
        run: |
          pip install pytest
          pip install -v msgpack --only-binary :all: --no-index -f dist/wheelhouse
          pytest -v test


      - name: Upload Wheels
        uses: actions/upload-artifact@v1
        with:
          name: linux-wheels
          path: ./dist/wheelhouse/