Skip to content

Commit 264b31f

Browse files
committed
use 'apt' rather than 'apt-get' in CI workflows
1 parent 4ec274f commit 264b31f

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

.github/workflows/bootstrap_script.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ jobs:
6464

6565
- name: install OS & Python packages
6666
run: |
67-
# disable apt-get update, we don't really need it,
67+
# disable apt update, we don't really need it,
6868
# and it does more harm than good (it's fairly expensive, and it results in flaky test runs)
69-
# sudo apt-get update
69+
# sudo apt update
7070
# for modules tool
71-
sudo apt-get install lua5.2 liblua5.2-dev lua-filesystem lua-posix tcl tcl-dev
71+
sudo apt install lua5.2 liblua5.2-dev lua-filesystem lua-posix tcl tcl-dev
7272
# fix for lua-posix packaging issue, see https://bugs.launchpad.net/ubuntu/+source/lua-posix/+bug/1752082
7373
# needed for Ubuntu 18.04, but not for Ubuntu 20.04, so skipping symlinking if posix.so already exists
7474
if [ ! -e /usr/lib/x86_64-linux-gnu/lua/5.2/posix.so ] ; then

.github/workflows/container_tests.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Tests for container support
33
on: [push, pull_request]
44
jobs:
55
build:
6-
# stick to Ubuntu 18.04, where we can still easily install yum via 'apt-get install'
6+
# stick to Ubuntu 18.04, where we can still easily install yum via 'apt install'
77
runs-on: ubuntu-18.04
88
strategy:
99
matrix:
@@ -21,12 +21,12 @@ jobs:
2121
- name: install OS & Python packages
2222
run: |
2323
# ensure package list is up to date to avoid 404's for old packages
24-
sudo apt-get update -yqq
24+
sudo apt update -yqq
2525
# for building Singularity images
26-
sudo apt-get install rpm
27-
sudo apt-get install yum
26+
sudo apt install rpm
27+
sudo apt install yum
2828
# for modules tool
29-
sudo apt-get install lua5.2 liblua5.2-dev lua-filesystem lua-posix tcl tcl-dev
29+
sudo apt install lua5.2 liblua5.2-dev lua-filesystem lua-posix tcl tcl-dev
3030
# fix for lua-posix packaging issue, see https://bugs.launchpad.net/ubuntu/+source/lua-posix/+bug/1752082
3131
# needed for Ubuntu 18.04, but not for Ubuntu 20.04, so skipping symlinking if posix.so already exists
3232
if [ ! -e /usr/lib/x86_64-linux-gnu/lua/5.2/posix.so ] ; then
@@ -49,7 +49,7 @@ jobs:
4949
- name: install Singularity
5050
run: |
5151
# install alien, which can be used to convert RPMs to Debian packages
52-
sudo apt-get install alien
52+
sudo apt install alien
5353
alien --version
5454
# determine latest version of Singularity available in EPEL, and download RPM
5555
singularity_rpm=$(curl -sL https://dl.fedoraproject.org/pub/epel/8/Everything/x86_64/Packages/s/ | grep singularity | sed 's/.*singularity/singularity/g' | sed 's/rpm.*/rpm/g')

.github/workflows/eb_command.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
pip install --upgrade pip
2626
pip --version
2727
# install packages required for modules tool
28-
sudo apt-get install lua5.2 liblua5.2-dev lua-filesystem lua-posix tcl tcl-dev
28+
sudo apt install lua5.2 liblua5.2-dev lua-filesystem lua-posix tcl tcl-dev
2929
# fix for lua-posix packaging issue, see https://bugs.launchpad.net/ubuntu/+source/lua-posix/+bug/1752082
3030
# needed for Ubuntu 18.04, but not for Ubuntu 20.04, so skipping symlinking if posix.so already exists
3131
if [ ! -e /usr/lib/x86_64-linux-gnu/lua/5.2/posix.so ] ; then

.github/workflows/unit_tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,20 +86,20 @@ jobs:
8686

8787
- name: install OS & Python packages
8888
run: |
89-
# disable apt-get update, we don't really need it,
89+
# disable apt update, we don't really need it,
9090
# and it does more harm than good (it's fairly expensive, and it results in flaky test runs)
91-
# sudo apt-get update
91+
# sudo apt update
9292
# for modules tool
93-
sudo apt-get install lua5.2 liblua5.2-dev lua-filesystem lua-posix tcl tcl-dev
93+
sudo apt install lua5.2 liblua5.2-dev lua-filesystem lua-posix tcl tcl-dev
9494
# fix for lua-posix packaging issue, see https://bugs.launchpad.net/ubuntu/+source/lua-posix/+bug/1752082
9595
# needed for Ubuntu 18.04, but not for Ubuntu 20.04, so skipping symlinking if posix.so already exists
9696
if [ ! -e /usr/lib/x86_64-linux-gnu/lua/5.2/posix.so ] ; then
9797
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
9898
fi
9999
# for GitPython, python-hglib
100-
sudo apt-get install git mercurial
100+
sudo apt install git mercurial
101101
# dep for GC3Pie
102-
sudo apt-get install time
102+
sudo apt install time
103103
# Python packages
104104
pip --version
105105
pip install --upgrade pip

0 commit comments

Comments
 (0)