-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (39 loc) · 1.41 KB
/
test_package.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
name: test_package
on: push
jobs:
test_package:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
embedded-py: [3.9.8, 3.11.5]
env:
create_pck: conan create . lumicks/testing -o embedded_python:version=${{ matrix.embedded-py }} --build=missing
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Set up CXX/C env
if: ${{ matrix.os == 'macos-latest' }}
run: |
echo CC=/usr/bin/clang >> $GITHUB_ENV
echo CXX=/usr/bin/clang++ >> $GITHUB_ENV
- name: Install Conan
run: |
python -m pip install conan==1.59.0
conan config set general.revisions_enabled=True
conan profile new default --detect
conan profile update settings.compiler.cppstd=17 default
- name: Test core
run: conan create ./core lumicks/testing -o embedded_python-core:version=${{ matrix.embedded-py }} --build=missing
- name: Test baseline
run: ${{ env.create_pck }}
- name: Test with numpy env
run: ${{ env.create_pck }} -o test_embedded_python:env=numpy
- name: Test with nbconvert env
run: ${{ env.create_pck }} -o test_embedded_python:env=nbconvert
- name: Test with pylake env
run: ${{ env.create_pck }} -o test_embedded_python:env=pylake