-
Notifications
You must be signed in to change notification settings - Fork 45
94 lines (92 loc) · 2.54 KB
/
tests.yaml
File metadata and controls
94 lines (92 loc) · 2.54 KB
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
name: Tests
on:
push:
jobs:
checks:
strategy:
fail-fast: false
matrix:
python-version:
- 3.8
- 3.9
- "3.10"
- 3.11
- 3.12
- 3.13
- pypy-3.8
os:
- ubuntu-latest
- macos-latest
- windows-latest
exclude:
- os: macos-latest
python-version: '3.10'
- os: macos-latest
python-version: 3.9
- os: macos-latest
python-version: 3.8
- os: macos-latest
python-version: '3.11'
- os: macos-latest
python-version: 'pypy-3.8'
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} @ ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v4
- 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/setup-msbuild@v1.1
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: pip install -e ./
- run: pip install pytest build
- run: pytest --doctest-modules tests/
- run: ls -l
if: runner.os != 'Windows'
- run: python -m build
# - name: Upload artifact
# uses: actions/upload-artifact@v4
# with:
# overwrite: True
# name: wheels
# path: dist
# if-no-files-found: error
# retention-days: 30