forked from cms-opendata-analyses/AOD2NanoAODOutreachTool
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (28 loc) · 827 Bytes
/
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
name: Test workflow on plain docker
on:
pull_request:
branches:
- master
jobs:
test_workflow:
runs-on: ubuntu-latest
name: AOD2NanoAOD test - plain docker
steps:
# chmod of the script before getting to the container
- uses: actions/checkout@v2
- name: Prepare
run: |
mkdir outputs
# run the container with the script in the repository
- name: Going to a container
id: container
run: |
docker run -v $(pwd):/mnt/vol -w /home/cmsusr cmsopendata/cmssw_5_3_32 /bin/bash /mnt/vol/commands.sh 1000 data_cfg.py
echo ls -l `ls -l `
cp output.root outputs
# upload output file
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: output
path: outputs/