-
Notifications
You must be signed in to change notification settings - Fork 41
59 lines (50 loc) · 1.37 KB
/
ci.yaml
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
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
# Python doesn't matter, conda had been built only with 3.8.5
python-version: ["3.8"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }} (Miniconda)
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
- name: Conda info
shell: bash -l {0}
run: conda info
- name: "Init conda"
shell: bash -l {0}
run: |
conda init bash
- name: Conda install dependencies
shell: bash -l {0}
run: |
conda create -n root-nightly -y -c https://root.cern/download/conda-nightly/latest -c conda-forge root-nightly cmake pytest pytest-benchmark pytest-csv numpy numba
- name: Configure and build
shell: bash -l {0}
run: |
conda activate root-nightly
mkdir -p build && cd build
cmake -Dcuda=OFF ..
cmake --build .
- name: Run benchmarks
shell: bash -l {0}
run: |
conda activate root-nightly
export PYTHONHOME=$CONDA
export RB_TEMP_FS=.
cd build
ctest -V