-
Notifications
You must be signed in to change notification settings - Fork 2
100 lines (95 loc) · 2.84 KB
/
ci.yml
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
100
name: Run Python Tests
on:
push:
pull_request:
jobs:
build:
name: Build on ${{ matrix.config.os }}, ${{ matrix.config.arch }}, ${{ matrix.python-version }}
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- name: "win32-x86"
os: windows-2019
arch: x86
- name: "win32-amd64"
os: windows-2019
arch: AMD64
- name: "win32-x86__2022"
os: windows-2022
arch: x86
- name: "win32-amd64__2022"
os: windows-2022
arch: AMD64
- name: "macos11-x84_64"
os: macos-11
arch: x86_64
- name: "macos11-universal2"
os: macos-11
arch: universal2
- name: "macos12-x84_64"
os: macos-12
arch: x86_64
- name: "macos12-universal2"
os: macos-12
arch: universal2
- name: "linux-i386"
os: ubuntu-20.04
arch: i686
platform: i386
- name: "linux-x86_64"
os: ubuntu-20.04
arch: x86_64
platform: x86_64
- name: "linux-aarch64"
os: ubuntu-20.04
arch: aarch64
platform: aarch64
- name: "linux-ppc64le"
os: ubuntu-20.04
arch: ppc64le
platform: ppc64le
- name: "linux-s390x"
os: ubuntu-20.04
arch: s390x
platform: s390x
- name: "linux-i386__22.04"
os: ubuntu-22.04
arch: i686
platform: i386
- name: "linux-x86_64__22.04"
os: ubuntu-22.04
arch: x86_64
platform: x86_64
- name: "linux-aarch64__22.04"
os: ubuntu-22.04
arch: aarch64
platform: aarch64
- name: "linux-ppc64le__22.04"
os: ubuntu-22.04
arch: ppc64le
platform: ppc64le
- name: "linux-s390x__22.04"
os: ubuntu-22.04
arch: s390x
platform: s390x
# Run in all these versions of Python
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Install Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
#pip install -r requirements.txt
pip install .
# Manually install pylint as long as we don't build the wheels
#pip install pylint
- name: Run unit tests
run: python ./tests/tests.py