-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (53 loc) · 1.4 KB
/
wheel.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
name: Wheel
on:
push:
paths:
- 'src/**'
- 'src-python/**'
- 'tests/**'
- 'pyproject.toml'
- 'CMakeLists.txt'
- 'CMakePresets.json'
- 'conanfile.txt'
- '.github/workflows/wheel.yml'
pull_request:
jobs:
build_and_test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{github.workspace}}
steps:
- uses: actions/checkout@v4
with:
ref: dev
- name: Install CMake and Ninja
uses: lukka/get-cmake@latest
- name: Install Conan
uses: turtlebrowser/get-conan@main
- name: Configure Conan
run: conan profile detect --force
- name: Install C++ dependencies
run: >
conan install
--build=missing
--settings build_type=Release
--settings compiler.cppstd=17
${{github.workspace}}
- name: Install Python dependencies
run: >
python -m pip install
-r ${{github.workspace}}/requirements.txt
- name: Build and install package
run: >
python -m pip install
${{github.workspace}}
--no-build-isolation
- name: Test package
run: python -m pytest
- name: Build wheel
run: >
python -m pip wheel
${{github.workspace}}
--no-build-isolation
--wheel-dir ${{github.workspace}}/dist