actions: install pipenv as root
This commit is contained in:
parent
443797d9b0
commit
93b8266821
|
@ -19,7 +19,7 @@ jobs:
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-pipenv-
|
${{ runner.os }}-pipenv-
|
||||||
- name: Install dependencies
|
- 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
|
- name: Lint with pylint
|
||||||
run: pipenv run pylint passbook
|
run: pipenv run pylint passbook
|
||||||
black:
|
black:
|
||||||
|
@ -33,7 +33,7 @@ jobs:
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-pipenv-
|
${{ runner.os }}-pipenv-
|
||||||
- name: Install dependencies
|
- 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
|
- name: Lint with black
|
||||||
run: pipenv run black --check passbook
|
run: pipenv run black --check passbook
|
||||||
prospector:
|
prospector:
|
||||||
|
@ -47,7 +47,7 @@ jobs:
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-pipenv-
|
${{ runner.os }}-pipenv-
|
||||||
- name: Install dependencies
|
- 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
|
- name: Lint with prospector
|
||||||
run: pipenv run prospector
|
run: pipenv run prospector
|
||||||
bandit:
|
bandit:
|
||||||
|
@ -61,7 +61,7 @@ jobs:
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-pipenv-
|
${{ runner.os }}-pipenv-
|
||||||
- name: Install dependencies
|
- 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
|
- name: Lint with bandit
|
||||||
run: pipenv run bandit -r passbook
|
run: pipenv run bandit -r passbook
|
||||||
# Actual CI tests
|
# Actual CI tests
|
||||||
|
@ -93,7 +93,7 @@ jobs:
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-pipenv-
|
${{ runner.os }}-pipenv-
|
||||||
- name: Install dependencies
|
- 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
|
- name: Run migrations
|
||||||
run: pipenv run ./manage.py migrate
|
run: pipenv run ./manage.py migrate
|
||||||
coverage:
|
coverage:
|
||||||
|
@ -124,7 +124,7 @@ jobs:
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-pipenv-
|
${{ runner.os }}-pipenv-
|
||||||
- name: Install dependencies
|
- 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
|
- name: Run coverage
|
||||||
run: pipenv run ./scripts/coverage.sh
|
run: pipenv run ./scripts/coverage.sh
|
||||||
# Build
|
# Build
|
||||||
|
|
Reference in New Issue