Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 35 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ defaults:
shell: bash -l {0}

jobs:
run:
unix:

runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
os: [ubuntu-18.04, ubuntu-20.04, macos-10.15, macos-11]

steps:
- name: Get number of CPU cores
Expand All @@ -46,3 +47,35 @@ jobs:

- name: Run tests
run: pytest .

win:

runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [ windows-2019, windows-2022 ]

steps:
- name: Get number of CPU cores
uses: SimenB/github-actions-cpu-cores@v1

- uses: actions/checkout@v2

- name: Setup mamba
uses: mamba-org/provision-with-micromamba@main
with:
environment-file: environment-dev.yml

- name: Install xcanvas
run: |
mkdir build
cd build
cmake .. ^
-G Ninaj ^
-D CMAKE_PREFIX_PATH=%CONDA_PREFIX%\Library% ^
-D CMAKE_INSTALL_PREFIX=%CONDA_PREFIX%\Library ^
-D CMAKE_C_COMPILER=%CC% ^
-D CMAKE_CXX_COMPILER=%CXX%
ninja install
1 change: 1 addition & 0 deletions environment-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ channels:
dependencies:
- cmake
- cxx-compiler
- ninja
- xproperty
- xwidgets
- ipycanvas >=0.11.0,<0.12
Expand Down