Skip to content

Commit 2c9dc75

Browse files
authored
Merge pull request easybuilders#4238 from boegel/container_tests_ubuntu-22.04
switch to Ubuntu 22.04 in GitHub Actions workflow to run container tests
2 parents b73b32d + cdfa9aa commit 2c9dc75

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

.github/workflows/container_tests.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@ concurrency:
1111

1212
jobs:
1313
build:
14-
# stick to Ubuntu 18.04, where we can still easily install yum via 'apt install'
15-
runs-on: ubuntu-18.04
14+
runs-on: ubuntu-22.04
1615
strategy:
1716
matrix:
18-
python: [2.7, 3.6]
17+
python: [2.7, 3.7]
1918
fail-fast: false
2019
steps:
2120
- uses: actions/checkout@v3
@@ -31,7 +30,7 @@ jobs:
3130
# for modules tool
3231
APT_PKGS="lua5.2 liblua5.2-dev lua-filesystem lua-posix tcl tcl-dev"
3332
# for building Singularity images
34-
APT_PKGS+=" rpm yum"
33+
APT_PKGS+=" rpm dnf"
3534
3635
# Avoid apt-get update, as we don't really need it,
3736
# and it does more harm than good (it's fairly expensive, and it results in flaky test runs)
@@ -41,12 +40,6 @@ jobs:
4140
sudo apt-get install $APT_PKGS
4241
fi
4342
44-
# fix for lua-posix packaging issue, see https://bugs.launchpad.net/ubuntu/+source/lua-posix/+bug/1752082
45-
# needed for Ubuntu 18.04, but not for Ubuntu 20.04, so skipping symlinking if posix.so already exists
46-
if [ ! -e /usr/lib/x86_64-linux-gnu/lua/5.2/posix.so ] ; then
47-
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
48-
fi
49-
5043
- name: install Lmod
5144
run: |
5245
# avoid downloading modules tool sources into easybuild-framework dir
@@ -104,7 +97,7 @@ jobs:
10497
# see https://docs.easybuild.io/en/latest/Containers.html
10598
curl -OL https://raw.githubusercontent.com/easybuilders/easybuild-easyconfigs/develop/easybuild/easyconfigs/b/bzip2/bzip2-1.0.8.eb
10699
export EASYBUILD_CONTAINERPATH=$PWD
107-
export EASYBUILD_CONTAINER_CONFIG='bootstrap=yum,osversion=7'
100+
export EASYBUILD_CONTAINER_CONFIG='bootstrap=docker,from=ghcr.io/easybuilders/centos-7.9-python3-amd64'
108101
eb bzip2-1.0.8.eb --containerize --experimental --container-build-image
109102
singularity exec bzip2-1.0.8.sif command -v bzip2 | grep '/app/software/bzip2/1.0.8/bin/bzip2' || (echo "Path to bzip2 '$which_bzip2' is not correct" && exit 1)
110103
singularity exec bzip2-1.0.8.sif bzip2 --help

0 commit comments

Comments
 (0)