Skip to content

Commit

Permalink
gh-actions: use sudo where necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
fermino committed Dec 5, 2024
1 parent 774ddd5 commit 2a639c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
- uses: actions/checkout@v4
- name: "Prepare build environment"
run: |
apt update
apt install -y --no-install-recommends \
sudo apt update
sudo apt install -y --no-install-recommends \
scons python3-sphinx gettext python3-setuptools \
libblkid-dev libelf-dev libglib2.0-dev libjson-glib-dev \
clang python3-pip python3-cffi python3-dev libffi-dev
Expand All @@ -31,7 +31,7 @@ jobs:
- name: "Prepare test environment"
# Based off https://github.com/LeastAuthority/mount-tmpfs-action
run: |
mount -o size=14G,nr_inodes=0 -t tmpfs tmpfs "${RM_TS_DIR}"
sudo mount -o size=14G,nr_inodes=0 -t tmpfs tmpfs "${RM_TS_DIR}"
- name: "Test"
run: |
RM_TS_PRINT_CMD=1 RM_TS_PEDANTIC=0 python -m pytest

0 comments on commit 2a639c8

Please sign in to comment.