@@ -22,10 +22,11 @@ jobs:
22
22
- run : " true"
23
23
build :
24
24
needs : setup
25
- runs-on : ubuntu-24.04
25
+ runs-on : ${{matrix.os}}
26
26
strategy :
27
27
matrix :
28
- python : [3.6]
28
+ os : [ubuntu-22.04]
29
+ python : [3.7]
29
30
modules_tool :
30
31
# use variables defined by 'setup' job above, see also
31
32
# https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#needs-context
@@ -37,21 +38,18 @@ jobs:
37
38
lc_all : [""]
38
39
include :
39
40
# Test different Python 3 versions with Lmod 8.x
40
- - python : 3.7
41
- modules_tool : ${{needs.setup.outputs.lmod8}}
42
41
- python : 3.8
43
42
modules_tool : ${{needs.setup.outputs.lmod8}}
43
+ os : ubuntu-24.04
44
44
- python : 3.9
45
45
modules_tool : ${{needs.setup.outputs.lmod8}}
46
+ os : ubuntu-24.04
46
47
- python : ' 3.10'
47
48
modules_tool : ${{needs.setup.outputs.lmod8}}
49
+ os : ubuntu-24.04
48
50
- python : ' 3.11'
49
51
modules_tool : ${{needs.setup.outputs.lmod8}}
50
- # There may be encoding errors in Python 3 which are hidden when an UTF-8 encoding is set
51
- # Hence run the tests (again) with LC_ALL=C and Python 3.6 (or any < 3.7)
52
- - python : 3.6
53
- modules_tool : ${{needs.setup.outputs.lmod8}}
54
- lc_all : C
52
+ os : ubuntu-24.04
55
53
fail-fast : false
56
54
steps :
57
55
- uses : actions/checkout@v4
101
99
# and are only run after the PR gets merged
102
100
GITHUB_TOKEN : ${{secrets.CI_UNIT_TESTS_GITHUB_TOKEN}}
103
101
run : |
104
- # only install GitHub token when testing with Lmod 8.x + Python 3.6 or 3.9, to avoid hitting GitHub rate limit
102
+ # only install GitHub token when testing with Lmod 8.x + Python 3.7 or 3.9, to avoid hitting GitHub rate limit
105
103
# tests that require a GitHub token are skipped automatically when no GitHub token is available
106
- if [[ "${{matrix.modules_tool}}" =~ 'Lmod-8' ]] && [[ "${{matrix.python}}" =~ 3.[69 ] ]]; then
104
+ if [[ "${{matrix.modules_tool}}" =~ 'Lmod-8' ]] && [[ "${{matrix.python}}" =~ 3.[79 ] ]]; then
107
105
if [ ! -z $GITHUB_TOKEN ]; then
108
106
SET_KEYRING="import keyrings.alt.file; keyring.set_keyring(keyrings.alt.file.PlaintextKeyring())"
109
107
python -c "import keyring; $SET_KEYRING; keyring.set_password('github_token', 'easybuild_test', '$GITHUB_TOKEN')"
0 commit comments