-
Notifications
You must be signed in to change notification settings - Fork 393
71 lines (66 loc) · 2.01 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
name: CI/CD
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
name: Run linter (flake8+black)
steps:
- uses: actions/checkout@master
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Lint with flake8 and black -l 160
run: |
python -m pip install -q flake8 black
black --version
flake8 .
black -l 160 --check --diff .
build:
strategy:
matrix:
python: ["3.8"]
root: ["6.22"]
include:
# python 3.10 root 6.26
- python: "3.10"
root: "6.26.4"
# python 3.10 root 6.32 (not available yet)
#- python: "3.10"
# root: "6.32" # version 6.30.07 where the conflicting classes were removed from root is not available, so compiling with 6.32.00 where this issue is resolved
runs-on: ubuntu-latest
name: Compile (py${{ matrix.python }}, root${{ matrix.root }})
steps:
- uses: actions/checkout@master
with:
path: HiggsAnalysis/CombinedLimit # Required to match compile instructions
- name: Set up Conda
uses: conda-incubator/[email protected]
with:
python-version: ${{ matrix.python }}
miniforge-variant: Miniforge3
channels: conda-forge,defaults
channel-priority: true
activate-environment: combine
- name: Install build environment
shell: bash -l {0}
run: |
mamba install -c conda-forge python==${{ matrix.python }} pip pandas root==${{ matrix.root }} gsl tbb vdt boost-cpp boost pcre eigen
cd HiggsAnalysis/CombinedLimit
bash set_conda_env_vars.sh
- name: Build
shell: bash -l {0}
run: |
cd HiggsAnalysis/CombinedLimit
make CONDA=1 -j 2
- name: Run tests
if: startsWith(matrix.python, '3.')
shell: bash -l {0}
run: |
cd HiggsAnalysis/CombinedLimit/test
python test_interference.py