Skip to content

Commit

Permalink
Adding ci workflows (#4)
Browse files Browse the repository at this point in the history
* preliminary tests

* preliminary tests

* preliminary tests

* fix authentification issue

* small dataset

* small dataset

* fix artifacts

* small dataset

* full dataset
  • Loading branch information
enibigir authored Mar 29, 2021
1 parent 8c8ed61 commit 13b5b3a
Showing 1 changed file with 75 additions and 0 deletions.
75 changes: 75 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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/download-artifact@v2
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/download-artifact@v2
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/download-artifact@v2
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

0 comments on commit 13b5b3a

Please sign in to comment.