From: gsegatti Date: Wed, 2 Feb 2022 16:54:57 +0000 (-0800) Subject: Adding sudo to both instances where pytest appears in the CI in order to allow testin... X-Git-Tag: v13~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fe99a46c2e2eea2fe892388bcaa9e9e8f9e696e;p=thirdparty%2Fmkosi.git Adding sudo to both instances where pytest appears in the CI in order to allow testing when going through functions that check for root privileges. --- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 25c938b1a..7ac2b8d50 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: - name: Install run: | - python3 -m pip install pytest mypy types-cryptography isort pyflakes + sudo python3 -m pip install pytest mypy types-cryptography isort pyflakes npm install -g pyright - name: Check that imports are sorted @@ -38,7 +38,7 @@ jobs: run: pyright . - name: Unit Tests - run: python3 -m pytest + run: sudo python3 -m pytest - name: Test execution from current working directory run: python3 -m mkosi -h