actions: don't setup custom python, use system pip

This commit is contained in:
Jens Langhammer 2020-03-04 21:06:26 +01:00
parent 66ef067ecf
commit 3750083667
1 changed files with 6 additions and 24 deletions

View File

@ -12,9 +12,6 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- uses: actions/setup-python@v1
with:
python-version: '3.8'
- uses: actions/cache@v1 - uses: actions/cache@v1
with: with:
path: ~/.local/share/virtualenvs/ path: ~/.local/share/virtualenvs/
@ -22,16 +19,13 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-pipenv- ${{ runner.os }}-pipenv-
- name: Install dependencies - name: Install dependencies
run: pip install -U pipenv && pipenv install --dev run: pip install -U pip pipenv && pipenv install --dev
- name: Lint with pylint - name: Lint with pylint
run: pipenv run pylint passbook run: pipenv run pylint passbook
black: black:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- uses: actions/setup-python@v1
with:
python-version: '3.8'
- uses: actions/cache@v1 - uses: actions/cache@v1
with: with:
path: ~/.local/share/virtualenvs/ path: ~/.local/share/virtualenvs/
@ -39,16 +33,13 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-pipenv- ${{ runner.os }}-pipenv-
- name: Install dependencies - name: Install dependencies
run: pip install -U pipenv && pipenv install --dev run: pip install -U pip 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:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- uses: actions/setup-python@v1
with:
python-version: '3.8'
- uses: actions/cache@v1 - uses: actions/cache@v1
with: with:
path: ~/.local/share/virtualenvs/ path: ~/.local/share/virtualenvs/
@ -56,16 +47,13 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-pipenv- ${{ runner.os }}-pipenv-
- name: Install dependencies - name: Install dependencies
run: pip install -U pipenv && pipenv install --dev && pipenv install --dev prospector --skip-lock run: pip install -U pip 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:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- uses: actions/setup-python@v1
with:
python-version: '3.8'
- uses: actions/cache@v1 - uses: actions/cache@v1
with: with:
path: ~/.local/share/virtualenvs/ path: ~/.local/share/virtualenvs/
@ -73,7 +61,7 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-pipenv- ${{ runner.os }}-pipenv-
- name: Install dependencies - name: Install dependencies
run: pip install -U pipenv && pipenv install --dev run: pip install -U pip 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
@ -98,9 +86,6 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- uses: actions/setup-python@v1
with:
python-version: '3.8'
- uses: actions/cache@v1 - uses: actions/cache@v1
with: with:
path: ~/.local/share/virtualenvs/ path: ~/.local/share/virtualenvs/
@ -108,7 +93,7 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-pipenv- ${{ runner.os }}-pipenv-
- name: Install dependencies - name: Install dependencies
run: pip install -U pipenv && pipenv install --dev run: pip install -U pip pipenv && pipenv install --dev
- name: Run migrations - name: Run migrations
run: pipenv run ./manage.py migrate run: pipenv run ./manage.py migrate
coverage: coverage:
@ -132,9 +117,6 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- uses: actions/setup-python@v1
with:
python-version: '3.8'
- uses: actions/cache@v1 - uses: actions/cache@v1
with: with:
path: ~/.local/share/virtualenvs/ path: ~/.local/share/virtualenvs/
@ -142,7 +124,7 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-pipenv- ${{ runner.os }}-pipenv-
- name: Install dependencies - name: Install dependencies
run: pip install -U pipenv && pipenv install --dev run: pip install -U pip pipenv && pipenv install --dev
- name: Run coverage - name: Run coverage
run: pipenv run ./scripts/coverage.sh run: pipenv run ./scripts/coverage.sh
# Build # Build