Skip to content

Commit

Permalink
install GitHub token so it can be used by EasyBuild
Browse files Browse the repository at this point in the history
  • Loading branch information
boegel committed Feb 29, 2024
1 parent eb5d57e commit 662e6fe
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/test-software.eessi.io.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,20 @@ jobs:
cvmfs_http_proxy: DIRECT
cvmfs_repositories: software.eessi.io

- name: install GitHub token
env:
EASYBUILD_GITHUB_USER: 'ci'
run: |
pip install keyring keyrings.alt
python -c "import keyring; import keyrings.alt.file; keyring.set_keyring(keyrings.alt.file.PlaintextKeyring()); keyring.set_password('github_token', '${EASYBUILD_GITHUB_USER}', '${{secrets.GITHUB_TOKEN}}')";
echo "GitHub token installed!"
else
echo "Installation of GitHub token skipped!"
fi
- name: Test check_missing_installations.sh script
env:
EASYBUILD_GITHUB_USER: 'ci'
run: |
export EESSI_SOFTWARE_SUBDIR_OVERRIDE=${{matrix.EESSI_SOFTWARE_SUBDIR_OVERRIDE}}
source /cvmfs/software.eessi.io/versions/${{matrix.EESSI_VERSION}}/init/bash
Expand All @@ -41,6 +54,7 @@ jobs:
module load EasyBuild
which eb
eb --version
eb --check-github
export EESSI_PREFIX=/cvmfs/software.eessi.io/versions/${{matrix.EESSI_VERSION}}
export EESSI_OS_TYPE=linux
env | grep ^EESSI | sort
Expand All @@ -53,6 +67,8 @@ jobs:
done
- name: Test check_missing_installations.sh with missing package (GCC/8.3.0)
env:
EASYBUILD_GITHUB_USER: 'ci'
run: |
export EESSI_SOFTWARE_SUBDIR_OVERRIDE=${{matrix.EESSI_SOFTWARE_SUBDIR_OVERRIDE}}
source /cvmfs/software.eessi.io/versions/${{matrix.EESSI_VERSION}}/init/bash
Expand All @@ -62,6 +78,7 @@ jobs:
module load EasyBuild
which eb
eb --version
eb --check-github
export EESSI_PREFIX=/cvmfs/software.eessi.io/versions/${{matrix.EESSI_VERSION}}
export EESSI_OS_TYPE=linux
env | grep ^EESSI | sort
Expand Down

0 comments on commit 662e6fe

Please sign in to comment.