-
-
Notifications
You must be signed in to change notification settings - Fork 818
117 lines (106 loc) · 3.11 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
name: CI
on: [push, pull_request]
jobs:
build-38:
name: Python 3.8.7 on ${{ matrix.os }} ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- windows-2019
- macos-11
- ubuntu-20.04
arch:
- x86
- x64
exclude:
- os: macos-11
arch: x86
- os: ubuntu-20.04
arch: x86
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.8.7'
architecture: ${{ matrix.arch }}
- name: Install dependencies
run: python dev/deps.py
- name: Run linter
run: python dev/lint.py
- name: Run tests
run: python dev/tests.py
env:
GH_PASS: ${{ secrets.GH_PASS }}
GL_PASS: ${{ secrets.GL_PASS }}
BB_PASS: ${{ secrets.BB_PASS }}
# build-linux-33:
# name: Python 3.3.7 on ubuntu-18.04 x64
# runs-on: ubuntu-18.04
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-python@v4
# with:
# python-version: '3.3.7'
# architecture: x64
# - name: Install dependencies
# run: python dev/deps.py
# - name: Run linter
# run: python dev/lint.py
# - name: Run tests
# run: python dev/tests.py
# env:
# GH_PASS: ${{ secrets.GH_PASS }}
# GL_PASS: ${{ secrets.GL_PASS }}
# BB_PASS: ${{ secrets.BB_PASS }}
# build-mac-33:
# name: Python 3.3.7 on macos-11 x64
# runs-on: macos-11
# steps:
# - uses: actions/checkout@v3
# - name: Check pyenv
# id: check-pyenv
# uses: actions/cache@v3
# with:
# path: ~/.pyenv
# key: macos-11-3.3-pyenv
# - name: Install Python 3.3
# run: python dev/pyenv-install.py 3.3 >> $GITHUB_PATH
# - name: Install dependencies
# run: python dev/deps.py
# - name: Run linter
# run: python dev/lint.py
# - name: Run tests
# run: python dev/tests.py
# env:
# GH_PASS: ${{ secrets.GH_PASS }}
# GL_PASS: ${{ secrets.GL_PASS }}
# BB_PASS: ${{ secrets.BB_PASS }}
build-windows-33:
name: Python 3.3.5 on windows-2019 ${{ matrix.arch }}
runs-on: windows-2019
strategy:
matrix:
arch:
- 'x86'
- 'x64'
steps:
- uses: actions/checkout@v3
- name: Cache Python
id: cache-python
uses: actions/cache@v3
with:
path: ~/AppData/Local/Python3.3-${{ matrix.arch }}
key: windows-2019-python-3.3-${{ matrix.arch }}
- name: Install Python 3.3.5
run: python dev/python-install.py 3.3 ${{ matrix.arch }} | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Install dependencies
run: python dev/deps.py
- name: Run linter
run: python dev/lint.py
- name: Run tests
run: python dev/tests.py
env:
GH_PASS: ${{ secrets.GH_PASS }}
GL_PASS: ${{ secrets.GL_PASS }}
BB_PASS: ${{ secrets.BB_PASS }}