Skip to content

Just run workflow on push #13

Just run workflow on push

Just run workflow on push #13

name: 'ROOT Python wheels'
on:
workflow_dispatch:
inputs:
branch:
description: 'The branch for which the Python wheel has to be generated'
type: string
required: true
default: "experimental-pip-install-root"
push:
branches: experimental-pip-install-root
jobs:
python_wheel:
runs-on: ubuntu-latest
env:
WORKDIR: /home/runner/work/root
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}
- name: Install Kerberos utilities
run: sudo apt-get install -y krb5-user
- name: Install XRootD client
run: sudo apt-get -y install xrootd-client
- name: Build wheels
uses: pypa/[email protected]
with:
output-dir: ${{ env.WORKDIR }}/wheelhouse
- name: Upload wheel to github
working-directory: ${{ env.WORKDIR }}
uses: actions/upload-artifact@v4

Check failure on line 38 in .github/workflows/python_wheel_build.yml

View workflow run for this annotation

GitHub Actions / ROOT Python wheels

Invalid workflow file

The workflow is not valid. .github/workflows/python_wheel_build.yml (Line: 38, Col: 9): Unexpected value 'uses' .github/workflows/python_wheel_build.yml (Line: 39, Col: 9): Unexpected value 'with'
with:
name: cibw-wheels-test
path: wheelhouse/*.whl
- name: Upload wheel to EOS
env:
RWEBEOS_KT: ${{ secrets.RWEBEOS_KT }}
KT_FILE_NAME: /tmp/decoded.keytab
EOS_PATH: /eos/project/r/root-eos/www/experimental-python-wheels
EOS_ENDPOINT: root://eosproject-r.cern.ch
KRB5CCNAME: /tmp/krb5cc
working-directory: ${{ env.WORKDIR }}
run: |
echo +++ Content
ls
echo +++ Retrieving the secret
echo ${RWEBEOS_KT} | base64 -d > ${KT_FILE_NAME}
echo +++ Creating the token
kinit -p ${{ secrets.KRB5USER }}@${{ secrets.KRB5REALM }} -kt ${KT_FILE_NAME}
echo +++ Running the copy
xrdcp -rf wheelhouse ${EOS_ENDPOINT}/${EOS_PATH}/