-
Notifications
You must be signed in to change notification settings - Fork 41
122 lines (120 loc) · 3.42 KB
/
tests.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
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
name: Tests
on:
push:
jobs:
checks:
strategy:
fail-fast: false
matrix:
python-version:
- 3.7
- 3.8
- 3.9
- "3.10"
- 3.11
- pypy-3.7
os:
- ubuntu-latest
# - macos-10.15
# - macos-11
- macos-12
- macos-latest
- windows-latest
exclude:
# Only do pypy 3.7 on Linux
- os: macos-latest
python-version: 'pypy-3.7'
- os: macos-10.15
python-version: 'pypy-3.7'
- os: macos-11
python-version: 'pypy-3.7'
- os: macos-12
python-version: 'pypy-3.7'
- os: windows-latest
python-version: 'pypy-3.7'
# Doesn't work yet.
- os: macos-10.15
python-version: '3.10'
- os: macos-11
python-version: '3.10'
- os: macos-12
python-version: '3.10'
- os: macos-latest
python-version: '3.10'
- os: macos-latest
python-version: 3.9
- os: macos-10.15
python-version: 3.9
- os: macos-latest
python-version: 3.8
- os: macos-10.15
python-version: 3.8
# Not sure about 3.11 passing yet.
- os: macos-latest
python-version: '3.11'
- os: macos-12
python-version: '3.11'
- os: macos-11
python-version: '3.11'
- os: macos-10.15
python-version: '3.11'
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} @ ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Linux install LZO
if: runner.os == 'Linux'
run: sudo apt install liblzo2-dev
- name: macos install LZO
if: runner.os == 'macOS'
run: |
echo "$RUNNER_OS uses included lzo source"
echo PWD: `pwd`
echo LS lzo
ls -l lzo-2.10/
echo LS lzo include
ls -l lzo-2.10/include/
cd lzo-2.10
./configure --enable-shared --disable-dependency-tracking --prefix=`pwd`
make
make test &> test_results
make install
cd ..
ls -l lzo-2.10/
find ./lzo-2.10/ -name "*lzo2*"
- name: Add msbuild to PATH
if: runner.os == 'Windows'
uses: microsoft/[email protected]
with:
msbuild-architecture: x64
- name: Setup LZO Windows
if: runner.os == 'Windows'
run: |
pwd
cd lzo-2.10
mkdir build
cd build
cmake ..
pwd
- name: build LZO Windows
if: runner.os == 'Windows'
working-directory: .\lzo-2.10\build
run: msbuild lzo_static_lib.vcxproj -p:Configuration=Release -p:Platform=x64 -p:OutDir=..\
- run: python setup.py install
- run: pip install pytest wheel
- run: pytest --doctest-modules tests/
- run: ls -l
if: runner.os != 'Windows'
- run: python setup.py sdist bdist_wheel
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
if-no-files-found: error
retention-days: 30