-
Notifications
You must be signed in to change notification settings - Fork 32
165 lines (153 loc) · 4.71 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
name: CI
on: [push, pull_request]
jobs:
build-windows:
name: Python ${{ matrix.python }} on windows-2019 ${{ matrix.arch }}
runs-on: windows-2019
strategy:
matrix:
python:
- '2.7'
- '3.9'
# - 'pypy-3.7-v7.3.5'
arch:
- 'x86'
- 'x64'
exclude:
- python: 'pypy-3.7-v7.3.5'
arch: x86
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
architecture: ${{ matrix.arch }}
- name: Install dependencies
run: python run.py deps
- name: Run test suite
run: python run.py ci-driver
- name: Run test suite (Windows legacy API)
run: python run.py ci-driver winlegacy
build-windows-old:
name: Python ${{ matrix.python }} on windows-2019 ${{ matrix.arch }}
runs-on: windows-2019
strategy:
matrix:
python:
- '2.6'
- '3.3'
arch:
- 'x86'
- 'x64'
steps:
- uses: actions/checkout@master
- name: Cache Python
id: cache-python
uses: actions/cache@v2
with:
path: ~/AppData/Local/Python${{ matrix.python }}-${{ matrix.arch }}
key: windows-2019-python-${{ matrix.python }}-${{ matrix.arch }}
- name: Install Python ${{ matrix.python }}
run: python run.py python-install ${{ matrix.python }} ${{ matrix.arch }} | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Install dependencies
run: python run.py deps
- name: Run test suite
run: python run.py ci-driver
- name: Run test suite (Windows legacy API)
run: python run.py ci-driver winlegacy
build-mac:
name: Python ${{ matrix.python }} on macos-10.15
runs-on: macos-10.15
strategy:
matrix:
python:
- '2.7'
- '3.9'
# - 'pypy-3.7-v7.3.5'
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
architecture: x64
- name: Install dependencies
run: python run.py deps
- name: Run test suite
run: python run.py ci-driver
- name: Run test suite (Mac cffi)
run: python run.py ci-driver cffi
- name: Run test suite (Mac OpenSSL)
run: python run.py ci-driver openssl
if: ${{ matrix.python }} != 'pypy-3.7-v7.3.5'
- name: Run test suite (Mac OpenSSL/cffi)
run: python run.py ci-driver cffi openssl
if: ${{ matrix.python }} != 'pypy-3.7-v7.3.5'
build-mac-old:
name: Python ${{ matrix.python }} on macos-10.15
runs-on: macos-10.15
strategy:
matrix:
python:
- '2.6'
- '3.3'
steps:
- uses: actions/checkout@master
- name: Check pyenv
id: check-pyenv
uses: actions/cache@v2
with:
path: ~/.pyenv
key: macos-10.15-${{ matrix.python }}-pyenv
- name: Install Python ${{ matrix.python }}
run: python run.py pyenv-install ${{ matrix.python }} >> $GITHUB_PATH
- name: Install dependencies
run: python run.py deps
- name: Run test suite
run: python run.py ci-driver
- name: Run test suite (Mac cffi)
run: python run.py ci-driver cffi
- name: Run test suite (Mac OpenSSL)
run: python run.py ci-driver openssl
- name: Run test suite (Mac OpenSSL/cffi)
run: python run.py ci-driver cffi openssl
build-ubuntu:
name: Python ${{ matrix.python }} on ubuntu-18.04 x64
runs-on: ubuntu-18.04
strategy:
matrix:
python:
- '2.7'
- '3.6'
- '3.9'
- 'pypy-3.7-v7.3.5'
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
architecture: x64
- name: Install dependencies
run: python run.py deps
- name: Run test suite
run: python run.py ci-driver
build-ubuntu-old:
name: Python ${{ matrix.python }} on ubuntu-18.04 x64
runs-on: ubuntu-18.04
strategy:
matrix:
python:
- '2.6'
- '3.2'
- '3.3'
steps:
- uses: actions/checkout@master
- name: Setup deadsnakes/ppa
run: sudo apt-add-repository ppa:deadsnakes/ppa
- name: Update apt
run: sudo apt-get update
- name: Install Python ${{matrix.python}}
run: sudo apt-get install python${{matrix.python}}
- name: Install dependencies
run: python${{matrix.python}} run.py deps
- name: Run test suite
run: python${{matrix.python}} run.py ci-driver