Add rucio upload script and rucio configuration file #38
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test running script for production | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- '*' | |
pull_request: | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build-and-run: | |
# Note: this workflow must run on linux | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cvmfs-contrib/github-action-cvmfs@v3 | |
- uses: eic/run-cvmfs-osg-eic-shell@main | |
env: | |
X509_PROXY: ${{ secrets.X509_PROXY }} | |
with: | |
platform-release: "jug_xl:nightly" | |
run: | | |
eic-info > eic-info.txt | |
echo ${X509_PROXY} > x509_user_proxy | |
# Test rucio upload script | |
export X509_USER_PROXY=x509_user_proxy | |
RUCIO_CONFIG=scripts/rucio.cfg python scripts/register_to_rucio.py -f eic-info.txt -d /main/CI/eic-info.txt -s epic | |
# Test running hepmc3 file | |
DETECTOR_CONFIG="epic_craterlake" \ | |
DETECTOR_VERSION="main" \ | |
COPYRECO=FALSE \ | |
COPYLOG=FALSE \ | |
scripts/run.sh EVGEN/DIS/NC/18x275/minQ2=1/pythia8NCDIS_18x275_minQ2=1_beamEffects_xAngle=-0.025_hiDiv_1 hepmc3.tree.root 10 | |
# Test running singles file | |
DETECTOR_CONFIG="epic_craterlake" \ | |
DETECTOR_VERSION="main" \ | |
COPYRECO=FALSE \ | |
COPYLOG=FALSE \ | |
scripts/run.sh EVGEN/SINGLE/e+/100MeV/130to177deg/e+_100MeV_130to177deg steer 10 |