Skip to content

Commit

Permalink
main.yml: Allow creation of user namespaces to unshare in Ubuntu >=24.04
Browse files Browse the repository at this point in the history
  • Loading branch information
hartwork committed Jan 17, 2025
1 parent 93bc595 commit b4c65bd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b4c65bd

Please sign in to comment.