|
62 | 62 | - python: 3.9 |
63 | 63 | modules_tool: ${{needs.setup.outputs.lmod8}} |
64 | 64 | module_syntax: Tcl |
| 65 | + - python: '3.10' |
| 66 | + modules_tool: ${{needs.setup.outputs.lmod8}} |
| 67 | + module_syntax: Lua |
| 68 | + - python: '3.10' |
| 69 | + modules_tool: ${{needs.setup.outputs.lmod8}} |
| 70 | + module_syntax: Tcl |
65 | 71 | # There may be encoding errors in Python 3 which are hidden when an UTF-8 encoding is set |
66 | 72 | # Hence run the tests (again) with LC_ALL=C and Python 3.6 (or any < 3.7) |
67 | 73 | - python: 3.6 |
@@ -110,13 +116,14 @@ jobs: |
110 | 116 | GITHUB_TOKEN: ${{secrets.TEST_GITHUB_TOKEN}} |
111 | 117 | run: | |
112 | 118 | # don't install GitHub token when testing with Lmod 7.x or non-Lmod module tools, |
| 119 | + # and only when testing with Lua as module syntax, |
113 | 120 | # to avoid hitting GitHub rate limit; |
114 | 121 | # tests that require a GitHub token are skipped automatically when no GitHub token is available |
115 | | - if [[ ! "${{matrix.modules_tool}}" =~ 'Lmod-7' ]] && [[ ! "${{matrix.modules_tool}}" =~ 'modules-' ]]; then |
| 122 | + if [[ ! "${{matrix.modules_tool}}" =~ 'Lmod-7' ]] && [[ ! "${{matrix.modules_tool}}" =~ 'modules-' ]] && [[ "${{matrix.modules_syntax}}" == 'Lua' ]]; then |
116 | 123 | if [ ! -z $GITHUB_TOKEN ]; then |
117 | 124 | if [ "x${{matrix.python}}" == 'x2.6' ]; |
118 | 125 | then SET_KEYRING="keyring.set_keyring(keyring.backends.file.PlaintextKeyring())"; |
119 | | - else SET_KEYRING="import keyrings; keyring.set_keyring(keyrings.alt.file.PlaintextKeyring())"; |
| 126 | + else SET_KEYRING="import keyrings.alt.file; keyring.set_keyring(keyrings.alt.file.PlaintextKeyring())"; |
120 | 127 | fi; |
121 | 128 | python -c "import keyring; $SET_KEYRING; keyring.set_password('github_token', 'easybuild_test', '$GITHUB_TOKEN')"; |
122 | 129 | fi |
@@ -193,7 +200,7 @@ jobs: |
193 | 200 | # run test suite |
194 | 201 | python -O -m test.framework.suite 2>&1 | tee test_framework_suite.log |
195 | 202 | # try and make sure output of running tests is clean (no printed messages/warnings) |
196 | | - IGNORE_PATTERNS="no GitHub token available|skipping SvnRepository test|requires Lmod as modules tool|stty: 'standard input': Inappropriate ioctl for device|CryptographyDeprecationWarning: Python 3.5|from cryptography.*default_backend|CryptographyDeprecationWarning: Python 2" |
| 203 | + IGNORE_PATTERNS="no GitHub token available|skipping SvnRepository test|requires Lmod as modules tool|stty: 'standard input': Inappropriate ioctl for device|CryptographyDeprecationWarning: Python 3.5|from cryptography.*default_backend|CryptographyDeprecationWarning: Python 2|from cryptography.utils import int_from_bytes" |
197 | 204 | # '|| true' is needed to avoid that Travis stops the job on non-zero exit of grep (i.e. when there are no matches) |
198 | 205 | PRINTED_MSG=$(egrep -v "${IGNORE_PATTERNS}" test_framework_suite.log | grep '\.\n*[A-Za-z]' || true) |
199 | 206 | test "x$PRINTED_MSG" = "x" || (echo "ERROR: Found printed messages in output of test suite\n${PRINTED_MSG}" && exit 1) |
0 commit comments