-
Notifications
You must be signed in to change notification settings - Fork 0
90 lines (87 loc) · 3.04 KB
/
ci.yaml
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
name: CI
on:
push:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['2.7', '3.5', '3.6', '3.7', '3.8', '3.9', '3.10', '3.11', 'pypy-2.7', 'pypy-3.7', 'pyston']
os: [ubuntu-20.04]
architecture: ["x64"]
include:
- python-version: '3.4'
os: ubuntu-18.04
architecture: "x64"
- python-version: '3.11'
os: macos-latest
architecture: "x64"
- python-version: '3.11'
os: windows-latest
architecture: "x64"
- python-version: '3.11'
os: windows-latest
architecture: "x86"
- python-version: '2.7'
os: windows-latest
architecture: "x86"
- python-version: '2.7'
os: windows-latest
architecture: "x64"
- python-version: '3.4'
os: windows-latest
architecture: "x86"
- python-version: '3.4'
os: windows-latest
architecture: "x64"
steps:
- uses: actions/checkout@v3
- name: Checkout submodule
run: |
git submodule init
git submodule update
- name: Set up Python ${{ matrix.python-version }}
if: ${{ matrix.python-version != 'pyston' }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}
- name: Set up Pyston
if: ${{ matrix.python-version == 'pyston' }}
run: |
wget -O pyston.deb https://github.com/pyston/pyston/releases/download/pyston_2.3.2/pyston_2.3.2_20.04.deb
sudo apt update
sudo apt install -y ./pyston.deb
sudo ln -sf pyston /usr/bin/python
sudo chown -RH $(whoami) $(python -c 'import os,inspect;print(os.path.dirname(inspect.getfile(inspect)))')
sudo chown -hRH $(whoami) /usr/bin
# - name: "Install Visual C++ for Python 2.7"
# if: ${{ matrix.os == 'windows-latest' && matrix.python-version == '2.7' }}
# run: |
# curl -L -O https://github.com/reider-roque/sulley-win-installer/raw/master/VCForPython27.msi
# msiexec /i VCForPython27.msi /qn
# choco install vcpython27 -f -y
- name: Upgrade pip
if: ${{ matrix.python-version != '2.7' && matrix.python-version != '3.4' }}
run: |
python -m pip install --upgrade pip
- name: Upgrade pip (2.7)
if: ${{ matrix.python-version == '2.7' }}
run: |
python -m pip install --upgrade pip~=20.0
python -m pip install --upgrade setuptools~=44.0
- name: Upgrade pip (3.4)
if: ${{ matrix.python-version == '3.4' }}
run: |
python -m pip install --upgrade pip~=19.0
python -m pip install --upgrade setuptools~=43.0
- name: Install dependencies
run: |
python -m pip install pytest wheel pybind11
- name: Install
run: |
python -m pip install .
- name: Test
run: |
# has to be script to avoid current directory being sys.path
pytest -v test