@@ -101,12 +101,12 @@ jobs:
101101 # and are only run after the PR gets merged
102102 GITHUB_TOKEN : ${{secrets.CI_UNIT_TESTS_GITHUB_TOKEN}}
103103 run : |
104- # only install GitHub token when testing with Lmod 8.x + Python 3.6 or 3.9, to avoid hitting GitHub rate limit;
104+ # only install GitHub token when testing with Lmod 8.x + Python 3.6 or 3.9, to avoid hitting GitHub rate limit
105105 # tests that require a GitHub token are skipped automatically when no GitHub token is available
106106 if [[ "${{matrix.modules_tool}}" =~ 'Lmod-8' ]] && [[ "${{matrix.python}}" =~ 3.[69] ]]; then
107107 if [ ! -z $GITHUB_TOKEN ]; then
108- SET_KEYRING="import keyrings.alt.file; keyring.set_keyring(keyrings.alt.file.PlaintextKeyring())";
109- python -c "import keyring; $SET_KEYRING; keyring.set_password('github_token', 'easybuild_test', '$GITHUB_TOKEN')";
108+ SET_KEYRING="import keyrings.alt.file; keyring.set_keyring(keyrings.alt.file.PlaintextKeyring())"
109+ python -c "import keyring; $SET_KEYRING; keyring.set_password('github_token', 'easybuild_test', '$GITHUB_TOKEN')"
110110 fi
111111 echo "GitHub token installed!"
112112 else
@@ -191,7 +191,17 @@ jobs:
191191 # run test suite
192192 python -O -m test.framework.suite 2>&1 | tee test_framework_suite.log
193193 # try and make sure output of running tests is clean (no printed messages/warnings)
194- IGNORE_PATTERNS="no GitHub token available|skipping SvnRepository test|requires Lmod as modules tool|stty: 'standard input': Inappropriate ioctl for device|CryptographyDeprecationWarning: Python 3.[56]|from cryptography.* import |CryptographyDeprecationWarning: Python 2|Blowfish|GC3Pie not available, skipping test|CryptographyDeprecationWarning: TripleDES has been moved|algorithms.TripleDES"
194+ IGNORE_PATTERNS="no GitHub token available"
195+ IGNORE_PATTERNS+="|skipping SvnRepository test"
196+ IGNORE_PATTERNS+="|requires Lmod as modules tool"
197+ IGNORE_PATTERNS+="|stty: 'standard input': Inappropriate ioctl for device"
198+ IGNORE_PATTERNS+="|CryptographyDeprecationWarning: Python 3.[56]"
199+ IGNORE_PATTERNS+="|from cryptography.* import "
200+ IGNORE_PATTERNS+="|CryptographyDeprecationWarning: Python 2"
201+ IGNORE_PATTERNS+="|Blowfish"
202+ IGNORE_PATTERNS+="|GC3Pie not available, skipping test"
203+ IGNORE_PATTERNS+="|CryptographyDeprecationWarning: TripleDES has been moved"
204+ IGNORE_PATTERNS+="|algorithms.TripleDES"
195205 # '|| true' is needed to avoid that GitHub Actions stops the job on non-zero exit of grep (i.e. when there are no matches)
196206 PRINTED_MSG=$(egrep -v "${IGNORE_PATTERNS}" test_framework_suite.log | grep '\.\n*[A-Za-z]' || true)
197207 test "x$PRINTED_MSG" = "x" || (echo "ERROR: Found printed messages in output of test suite" && echo "${PRINTED_MSG}" && exit 1)
0 commit comments