-
Notifications
You must be signed in to change notification settings - Fork 11
75 lines (72 loc) · 2.02 KB
/
main.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
name: ci
on: [push,pull_request]
jobs:
build_skim:
runs-on: ubuntu-latest
container: rootproject/root-conda:${{ matrix.version }}
continue-on-error: ${{ matrix.allow_failure }}
strategy:
matrix:
version: [6.18.04]
allow_failure: [false]
include:
- version: latest
allow_failure: true
steps:
- uses: actions/checkout@v2
#- name: small dataset
#run: cat skim.cxx | sed -e 's|opendata/cms/derived-data/AOD2NanoAODOutreachTool|root-eos/HiggsTauTauReduced|' > ci_skim.cxx; cp ci_skim.cxx skim.cxx
- name: build
run: g++ -g -O3 -Wall -Wextra -Wpedantic -o skim skim.cxx $(root-config --cflags --libs)
- uses: actions/upload-artifact@v2
with:
name: skim${{ matrix.version }}
path: skim
skim:
needs: build_skim
runs-on: ubuntu-latest
container: rootproject/root-conda:6.18.04
steps:
- uses: actions/checkout@v2
- uses: actions/[email protected]
with:
name: skim6.18.04
- name: skim
run: |
chmod +x ./skim
./skim
- uses: actions/upload-artifact@v2
with:
name: skimmed
path: ./*.root
produce_histograms:
needs: skim
runs-on: ubuntu-latest
container: rootproject/root-conda:6.18.04
steps:
- uses: actions/checkout@v2
- uses: actions/[email protected]
with:
name: skimmed
- run: python histograms.py
- uses: actions/upload-artifact@v2
with:
name: merged
path: histograms.root
make_plots:
needs: produce_histograms
runs-on: ubuntu-latest
container: rootproject/root-conda:6.18.04
steps:
- uses: actions/checkout@v2
- uses: actions/[email protected]
with:
name: merged
- run: |
python plot.py
mkdir ci_plots
cp *.png ci_plots
- uses: actions/upload-artifact@v2
with:
name: plots
path: ci_plots