@@ -11,9 +11,9 @@ concurrency:
11
11
12
12
jobs :
13
13
setup :
14
- runs-on : ubuntu-20 .04
14
+ runs-on : ubuntu-22 .04
15
15
outputs :
16
- lmod8 : Lmod-8.7.6
16
+ lmod8 : Lmod-8.7.58
17
17
modules4 : modules-4.5.3
18
18
modules5 : modules-5.3.1
19
19
steps :
23
23
runs-on : ubuntu-20.04
24
24
strategy :
25
25
matrix :
26
- python : [3.6]
26
+ # Python 3.10 is default in Ubuntu 22.04
27
+ python : ['3.10']
27
28
modules_tool :
28
29
# use variables defined by 'setup' job above, see also
29
30
# https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#needs-context
@@ -33,39 +34,32 @@ jobs:
33
34
lc_all : [""]
34
35
include :
35
36
# Test different Python 3 versions with Lmod 8.x (with both Lua and Tcl module syntax)
36
- - python : 3.7
37
- modules_tool : ${{needs.setup.outputs.lmod8}}
38
- - python : 3.8
37
+ - python : ' 3.7'
39
38
modules_tool : ${{needs.setup.outputs.lmod8}}
40
- - python : 3.9
39
+ - python : ' 3.8 '
41
40
modules_tool : ${{needs.setup.outputs.lmod8}}
42
- - python : ' 3.10 '
41
+ - python : ' 3.9 '
43
42
modules_tool : ${{needs.setup.outputs.lmod8}}
44
43
- python : ' 3.11'
45
44
modules_tool : ${{needs.setup.outputs.lmod8}}
46
45
- python : ' 3.12'
47
46
modules_tool : ${{needs.setup.outputs.lmod8}}
48
47
- python : ' 3.13'
49
48
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
55
49
fail-fast : false
56
50
steps :
57
- - uses : actions/checkout@v3
51
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
58
52
59
53
- name : set up Python
60
- uses : actions/setup-python@v4
54
+ uses : actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
61
55
with :
62
56
python-version : ${{matrix.python}}
63
57
architecture : x64
64
58
65
59
- name : install OS & Python packages
66
60
run : |
67
61
# for modules tool
68
- APT_PKGS="lua5.2 liblua5.2 -dev lua-filesystem lua-posix tcl tcl-dev"
62
+ APT_PKGS="lua5.3 liblua5.3 -dev lua-filesystem lua-posix tcl tcl-dev"
69
63
# for GitPython, python-hglib
70
64
APT_PKGS+=" git mercurial"
71
65
# dep for GC3Pie
79
73
sudo apt-get install $APT_PKGS
80
74
fi
81
75
82
- # fix for lua-posix packaging issue, see https://bugs.launchpad.net/ubuntu/+source/lua-posix/+bug/1752082
83
- # needed for Ubuntu 18.04, but not for Ubuntu 20.04, so skipping symlinking if posix.so already exists
84
- if [ ! -e /usr/lib/x86_64-linux-gnu/lua/5.2/posix.so ] ; then
85
- sudo ln -s /usr/lib/x86_64-linux-gnu/lua/5.2/posix_c.so /usr/lib/x86_64-linux-gnu/lua/5.2/posix.so
86
- fi
87
76
# Python packages
88
77
pip --version
89
78
pip install --upgrade pip
94
83
pip install --upgrade setuptools
95
84
fi
96
85
# git config is required to make actual git commits (cfr. tests for GitRepository)
97
- git config --global user.name "Travis CI "
98
- git config --global user.email "[email protected] "
86
+ git config --global user.name "Github Actions "
87
+ git config --global user.email "[email protected] "
99
88
git config --get-regexp 'user.*'
100
89
101
90
- name : install GitHub token (if available)
105
94
# and are only run after the PR gets merged
106
95
GITHUB_TOKEN : ${{secrets.CI_UNIT_TESTS_GITHUB_TOKEN}}
107
96
run : |
108
- # only install GitHub token when testing with Lmod 8.x + Python 3.6 or 3. 9, to avoid hitting GitHub rate limit
97
+ # only install GitHub token when testing with Lmod 8.x + Python 3.9, to avoid hitting GitHub rate limit
109
98
# tests that require a GitHub token are skipped automatically when no GitHub token is available
110
- if [[ "${{matrix.modules_tool}}" =~ 'Lmod-8' ]] && [[ "${{matrix.python}}" =~ 3.[69] ]]; then
99
+ if [[ "${{matrix.modules_tool}}" =~ 'Lmod-8' ]] && [[ "${{matrix.python}}" =~ 3.9 ]]; then
111
100
if [ ! -z $GITHUB_TOKEN ]; then
112
101
SET_KEYRING="import keyrings.alt.file; keyring.set_keyring(keyrings.alt.file.PlaintextKeyring())"
113
102
python -c "import keyring; $SET_KEYRING; keyring.set_password('github_token', 'easybuild_test', '$GITHUB_TOKEN')"
@@ -197,9 +186,8 @@ jobs:
197
186
IGNORE_PATTERNS+="|skipping SvnRepository test"
198
187
IGNORE_PATTERNS+="|requires Lmod as modules tool"
199
188
IGNORE_PATTERNS+="|stty: 'standard input': Inappropriate ioctl for device"
200
- IGNORE_PATTERNS+="|CryptographyDeprecationWarning: Python 3.[567] "
189
+ IGNORE_PATTERNS+="|CryptographyDeprecationWarning: Python 3.7 "
201
190
IGNORE_PATTERNS+="|from cryptography.* import "
202
- IGNORE_PATTERNS+="|CryptographyDeprecationWarning: Python 2"
203
191
IGNORE_PATTERNS+="|Blowfish"
204
192
IGNORE_PATTERNS+="|GC3Pie not available, skipping test"
205
193
IGNORE_PATTERNS+="|CryptographyDeprecationWarning: TripleDES has been moved"
0 commit comments