Skip to content

Commit e57103e

Browse files
committed
Call conan in ci
1 parent 879938d commit e57103e

1 file changed

Lines changed: 22 additions & 6 deletions

File tree

.github/workflows/python.yml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
name: Check 🐍 pkg PROPOSAL.
22

3-
on: [push]
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- "**"
9+
pull_request:
10+
11+
env:
12+
CMAKE_TOOLCHAIN_FILE: build/conan_toolchain.cmake
413

514
jobs:
615
build:
@@ -10,6 +19,7 @@ jobs:
1019
include:
1120
- os : "ubuntu-latest"
1221
- os : "macos-latest"
22+
1323
steps:
1424
- uses: actions/checkout@v2
1525
- name: Cache conan
@@ -18,11 +28,17 @@ jobs:
1828
with:
1929
path: ~/.conan
2030
key: ${{ runner.os }}-cache-conan-${{ matrix.compiler }}-${{ hashFiles('conanfile.py') }}-key
21-
- name: Install conan
22-
run: python3 -m pip install conan
31+
32+
- name: Setup conan
33+
run: |
34+
python3 -m pip install conan
35+
conan profile detect
36+
37+
- name: Install C++ dependencies using conan
38+
run: conan install . -o with_python=True -o with_testing=False --build=missing
39+
2340
- name: Install Python 🐍 distributions 📦
24-
run: python3 -m pip install .
25-
- name: Install pytest
26-
run: python3 -m pip install pytest
41+
run: python3 -m pip install .[tests]
42+
2743
- name: run pytest
2844
run: python3 -m pytest tests/python -v

0 commit comments

Comments
 (0)