Skip to content

Prepare for conan package #21

Prepare for conan package

Prepare for conan package #21

name: Windows unit tests
on:
push:
branches: [ master]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
windows-tests-fullSetup:
runs-on: windows-latest
if: "!contains(github.event.head_commit.message, 'skip-ci')"
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- uses: actions/setup-python@v3
with:
python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
- name: Install pip packages
run: pip install conan numpy setuptools
- run: conan profile detect
- name: Get number of CPU cores
uses: SimenB/github-actions-cpu-cores@v1
id: cpu-cores
- run: conan install . --options enable_tests=True --build=missing
- run: cmake --list-presets
- run: cmake --preset conan-default
- run: cmake --build --list-presets
- run: cmake --build --preset conan-default -j${{ steps.cpu-cores.outputs.count }}
- run: ctest --list-presets
- run: ctest --preset conan-default --output-on-failure