-
Notifications
You must be signed in to change notification settings - Fork 46
94 lines (82 loc) · 2.58 KB
/
ci.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: Build + Test
on:
push:
branches:
- main
- alpha-dev
pull_request:
branches:
- main
- alpha-dev
workflow_dispatch:
inputs:
upload-outputs:
description: 'Whether to upload outputs'
default: false
type: boolean
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
name: Testing on ${{ matrix.os }} with Python ${{ matrix.python }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
python:
- "3.10"
- "3.13"
defaults:
run:
# Conda requires a login shell in order to work properly
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create Helios dev environment
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
auto-activate-base: false
activate-environment: helios-dev
environment-file: environment-dev.yml
python-version: ${{ matrix.python }}
miniconda-version: "latest"
conda-remove-defaults: true
- name: Install Conda GCC
if: runner.os == 'Linux'
run: |
conda install -y -c conda-forge gcc gxx
- name: Install Helios
run: |
python -m pip install --no-build-isolation --config-settings=cmake.build-type="Debug" --config-settings=build-dir="build" --config-settings=cmake.define.BUILD_TESTING="ON" -v .
env:
SETUPTOOLS_SCM_SUBPROCESS_TIMEOUT: "120"
- name: Run C++ test suite
working-directory: ./build
run: |
ctest -C Debug --output-on-failure
# Do not run on MacOS for now - we do not yet officially support it and we need to invest a bit
# more efforts into investigating broken LAZ files written by Helios on MacOS.
- name: Run marked tests
if: runner.os != 'macOS'
run: |
python -m pytest
# TODO: Reenable this after porting the regression tests
# - name: Run tests (incl. regression tests)
# if: runner.os == 'Windows'
# run: |
# python -m pytest --regression-tests
# - name: Run tests (excl. regression tests)
# if: runner.os == 'Linux'
# run: |
# python -m pytest
# - name: Upload artifacts
# uses: actions/upload-artifact@v4
# if: github.event.inputs.upload-outputs == 'true'
# with:
# name: test-results
# path: output/*
# retention-days: 1