From 37500836675d41c94f1f44ee6e722e9fed44bcaf Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 4 Mar 2020 21:06:26 +0100 Subject: [PATCH] actions: don't setup custom python, use system pip --- .github/workflows/ci.yml | 30 ++++++------------------------ 1 file changed, 6 insertions(+), 24 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4bf3ea2e6..ca24b529d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,9 +12,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: '3.8' - uses: actions/cache@v1 with: path: ~/.local/share/virtualenvs/ @@ -22,16 +19,13 @@ jobs: restore-keys: | ${{ runner.os }}-pipenv- - name: Install dependencies - run: pip install -U pipenv && pipenv install --dev + run: pip install -U pip pipenv && pipenv install --dev - name: Lint with pylint run: pipenv run pylint passbook black: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: '3.8' - uses: actions/cache@v1 with: path: ~/.local/share/virtualenvs/ @@ -39,16 +33,13 @@ jobs: restore-keys: | ${{ runner.os }}-pipenv- - name: Install dependencies - run: pip install -U pipenv && pipenv install --dev + run: pip install -U pip pipenv && pipenv install --dev - name: Lint with black run: pipenv run black --check passbook prospector: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: '3.8' - uses: actions/cache@v1 with: path: ~/.local/share/virtualenvs/ @@ -56,16 +47,13 @@ jobs: restore-keys: | ${{ runner.os }}-pipenv- - 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 run: pipenv run prospector bandit: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: '3.8' - uses: actions/cache@v1 with: path: ~/.local/share/virtualenvs/ @@ -73,7 +61,7 @@ jobs: restore-keys: | ${{ runner.os }}-pipenv- - name: Install dependencies - run: pip install -U pipenv && pipenv install --dev + run: pip install -U pip pipenv && pipenv install --dev - name: Lint with bandit run: pipenv run bandit -r passbook # Actual CI tests @@ -98,9 +86,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: '3.8' - uses: actions/cache@v1 with: path: ~/.local/share/virtualenvs/ @@ -108,7 +93,7 @@ jobs: restore-keys: | ${{ runner.os }}-pipenv- - name: Install dependencies - run: pip install -U pipenv && pipenv install --dev + run: pip install -U pip pipenv && pipenv install --dev - name: Run migrations run: pipenv run ./manage.py migrate coverage: @@ -132,9 +117,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: '3.8' - uses: actions/cache@v1 with: path: ~/.local/share/virtualenvs/ @@ -142,7 +124,7 @@ jobs: restore-keys: | ${{ runner.os }}-pipenv- - name: Install dependencies - run: pip install -U pipenv && pipenv install --dev + run: pip install -U pip pipenv && pipenv install --dev - name: Run coverage run: pipenv run ./scripts/coverage.sh # Build