Skip to content

Reconfigure electron efficiency correction tools for trigger SFs #1010

Reconfigure electron efficiency correction tools for trigger SFs

Reconfigure electron efficiency correction tools for trigger SFs #1010

Workflow file for this run

name: CI/CD
on:
push:
pull_request:
jobs:
images:
runs-on: ubuntu-latest
env:
RELEASE_TYPE: ${{ matrix.release_type }}
RELEASE_VERSION: ${{ matrix.release_version }}
DOCKER_BASE_REPO: gitlab-registry.cern.ch/atlas/athena
DOCKER_TARGET_REPO: ucatlas
RELEASE: ${{ format('{0}@{1}', matrix.release_type, matrix.release_version) }}
strategy:
matrix:
release_type:
- analysisbase
release_version:
- 24.2.1
- 24.2.2
- 24.2.3
- 24.2.4
- 24.2.5
- 24.2.6
- 24.2.7
- 24.2.8
- 24.2.9
steps:
- uses: actions/checkout@master
- name: build ${{ env['RELEASE'] }}
run: |
docker build --build-arg GIT_SHA=$GITHUB_SHA \
--build-arg DOCKER_BASE_REPO \
--build-arg DOCKER_IMG=$RELEASE_TYPE \
--build-arg DOCKER_TAG=$RELEASE_VERSION \
-t ${DOCKER_TARGET_REPO}/${RELEASE_TYPE}:${RELEASE_VERSION}-latest .
- name: "test bash on ${{ env['DOCKER_TARGET_REPO'] }}/${{ env['RELEASE_TYPE'] }}:${{ env['RELEASE_VERSION'] }}"
run: |
docker run --rm ${DOCKER_TARGET_REPO}/${RELEASE_TYPE}:${RELEASE_VERSION}-latest /bin/bash -c "source ~/.bashrc"
- name: "test xAH_run.py on ${{ env['DOCKER_TARGET_REPO'] }}/${{ env['RELEASE_TYPE'] }}:${{ env['RELEASE_VERSION'] }}"
run: |
docker run --rm ${DOCKER_TARGET_REPO}/${RELEASE_TYPE}:${RELEASE_VERSION}-latest /bin/bash -c 'source /xAODAnaHelpers_setup.sh; xAH_run.py -h'
- name: timestamp the image
run: |
docker tag ${DOCKER_TARGET_REPO}/${RELEASE_TYPE}:${RELEASE_VERSION}-latest ${DOCKER_TARGET_REPO}/${RELEASE_TYPE}:${RELEASE_VERSION}-${GITHUB_SHA::6}-$(date +%Y%m%d)
- name: deploy latest and timestamped for ${{ env['RELEASE'] }}
if: success() && github.event_name == 'push' && github.ref == 'refs/heads/main'
run: |
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
docker push ${DOCKER_TARGET_REPO}/${RELEASE_TYPE}:${RELEASE_VERSION}-${GITHUB_SHA::6}-$(date +%Y%m%d)
docker push ${DOCKER_TARGET_REPO}/${RELEASE_TYPE}:${RELEASE_VERSION}-latest
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
docs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7]
steps:
- uses: actions/checkout@master
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install linux dependencies
run: |
sudo apt-get update
sudo apt-get -yqq --no-install-suggests --no-install-recommends install doxygen doxygen-doc doxygen-gui doxygen-latex graphviz
- name: Install python dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install --ignore-installed -U -q -r docs/requirements.txt
pip list
- name: Build docs
run: |
cd docs && make html && cd ../
touch docs/_build/html/.nojekyll
- name: Deploy docs to GitHub Pages
if: success() && github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: crazy-max/ghaction-github-pages@v1.0.1
with:
target_branch: gh-pages
build_dir: docs/_build/html
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}