From b4c65bd677cb2b7c289d5842ac2b638201305b88 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Fri, 17 Jan 2025 20:21:13 +0100 Subject: [PATCH] main.yml: Allow creation of user namespaces to unshare in Ubuntu >=24.04 --- .github/workflows/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 372cc6a4..7a2116e7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -51,6 +51,13 @@ jobs: pip install codecov '.[tests]' '${{ matrix.urllib3-requirement }}' pip check + - name: Allow creation of user namespaces (e.g. to the unshare command) + run: | + # .. so that we don't get error: + # unshare: write failed /proc/self/uid_map: Operation not permitted + # Idea from https://github.com/YoYoGames/GameMaker-Bugs/issues/6015#issuecomment-2135552784 . + sudo sysctl kernel.apparmor_restrict_unprivileged_userns=0 + - name: Run online tests run: ./runtests.sh --cov=./vcr --cov-branch --cov-report=xml --cov-append -m online