-
-
Notifications
You must be signed in to change notification settings - Fork 85
69 lines (66 loc) · 2.03 KB
/
testing.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
name: Tests Runner
on:
push:
branches: [main]
pull_request:
jobs:
linux-test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ['3.8', '3.11']
name: Test for ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: x64
cache: 'pip'
- name: Install dependencies
run: |
pip install --upgrade pip setuptools wheel
pip install pip-tools pytest
python -m piptools compile --resolver=backtracking -o requirements.txt pyproject.toml
pip install -r requirements.txt
- name: Build and install
run: pip install .
- name: Test
run: pytest
windows-test:
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.11']
defaults:
run:
shell: pwsh
name: Test for ${{ matrix.python-version }} on windows-latest
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- uses: ilammy/msvc-dev-cmd@v1
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install build dependencies
run: |
pip install --upgrade pip setuptools wheel
pip install pip-tools pytest ninja conan==1.60
python -m piptools compile --resolver=backtracking -o requirements.txt pyproject.toml
pip install -r requirements.txt
conan install zlib/1.2.13@ -s compiler.version=16 -g cmake_paths
- name: Build Python ${{ matrix.python-version }} wheel
run: python setup.py install --user
env:
CMAKE_GENERATOR: "Ninja"
CMAKE_TOOLCHAIN_FILE: "conan_paths.cmake"
- name: Test
run: pytest