-
Notifications
You must be signed in to change notification settings - Fork 211
Description
There's a silly typo in the GitHub Actions workflow file we use to run the unit tests (.github/workflows/unit_tests.yml
):
if [[ ! "${{matrix.modules_tool}}" =~ 'Lmod-7' ]] && [[ ! "${{matrix.modules_tool}}" =~ 'modules-' ]] && [[ "${{matrix.modules_syntax}}" == 'Lua' ]]; then |
${{matrix.modules_syntax}}
should be ${{matrix.module_syntax}}
As a result of this, the GitHub token that is available when the tests are being run are never run, even if a GitHub token is available (which is the case when the tests are run after a PR is merged into develop
), and we skip any tests that require a GitHub token if none is available.
This problems was introduced in #3938 (merged Jan'22)
I looked into fixing this, but then I'm seeing trouble with the permissions of GitHub token that's available when the tests are run, see for example https://github.com/boegel/easybuild-framework/actions/runs/4182110823/jobs/7244807091
Relevant part of output of eb --check-github
:
* GitHub user...easybuild_test => OK
* GitHub token...ghp..FGM (len: 40) => FAIL (validation failed)