From 93b826682130b7bb909cf25d4d576d383d5382b4 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 4 Mar 2020 21:13:40 +0100 Subject: [PATCH] actions: install pipenv as root --- .github/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9fbf6fe93..e7306d4a8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: restore-keys: | ${{ runner.os }}-pipenv- - name: Install dependencies - run: pip install wheel && pip install -U pipenv && pipenv install --dev + run: sudo pip install -U wheel pipenv && pipenv install --dev - name: Lint with pylint run: pipenv run pylint passbook black: @@ -33,7 +33,7 @@ jobs: restore-keys: | ${{ runner.os }}-pipenv- - name: Install dependencies - run: pip install wheel && pip install -U pipenv && pipenv install --dev + run: sudo pip install -U wheel pipenv && pipenv install --dev - name: Lint with black run: pipenv run black --check passbook prospector: @@ -47,7 +47,7 @@ jobs: restore-keys: | ${{ runner.os }}-pipenv- - name: Install dependencies - run: pip install wheel && pip install -U pipenv && pipenv install --dev && pipenv install --dev prospector --skip-lock + run: sudo pip install -U wheel pipenv && pipenv install --dev && pipenv install --dev prospector --skip-lock - name: Lint with prospector run: pipenv run prospector bandit: @@ -61,7 +61,7 @@ jobs: restore-keys: | ${{ runner.os }}-pipenv- - name: Install dependencies - run: pip install wheel && pip install -U pipenv && pipenv install --dev + run: sudo pip install -U wheel pipenv && pipenv install --dev - name: Lint with bandit run: pipenv run bandit -r passbook # Actual CI tests @@ -93,7 +93,7 @@ jobs: restore-keys: | ${{ runner.os }}-pipenv- - name: Install dependencies - run: pip install wheel && pip install -U pipenv && pipenv install --dev + run: sudo pip install -U wheel pipenv && pipenv install --dev - name: Run migrations run: pipenv run ./manage.py migrate coverage: @@ -124,7 +124,7 @@ jobs: restore-keys: | ${{ runner.os }}-pipenv- - name: Install dependencies - run: pip install wheel && pip install -U pipenv && pipenv install --dev + run: sudo pip install -U wheel pipenv && pipenv install --dev - name: Run coverage run: pipenv run ./scripts/coverage.sh # Build