Skip to content

Commit

Permalink
Bumped checkout versions in Github actions configuration to v3 and si…
Browse files Browse the repository at this point in the history
…mplified caching.
  • Loading branch information
felixxm committed Mar 28, 2022
1 parent 42a5e2a commit af8b25f
Showing 1 changed file with 9 additions and 23 deletions.
32 changes: 9 additions & 23 deletions .github/workflows/ci.yml
Expand Up @@ -22,18 +22,13 @@ jobs:
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup Python 3.8
uses: actions/setup-python@v3
with:
python-version: 3.8
- name: Cache PyPI
uses: actions/cache@v2
with:
key: pip-lint-${{ hashFiles('requirements/*.txt') }}
path: ~/.cache/pip
restore-keys: |
pip-lint-
cache: 'pip'
cache-dependency-path: 'requirements/*.txt'
- name: Install dependencies
uses: py-actions/py-dependency-install@v3
with:
Expand Down Expand Up @@ -84,22 +79,13 @@ jobs:
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup Python ${{ matrix.pyver }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.pyver }}
- name: Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)" # - name: Cache
- name: Cache PyPI
uses: actions/cache@v2
with:
key: pip-ci-${{ runner.os }}-${{ matrix.pyver }}-{{ matrix.no-extensions }}-${{ hashFiles('requirements/*.txt') }}
path: ${{ steps.pip-cache.outputs.dir }}
restore-keys: |
pip-ci-${{ runner.os }}-${{ matrix.pyver }}-{{ matrix.no-extensions }}-
cache: 'pip'
cache-dependency-path: 'requirements/*.txt'
- name: Install cython
if: ${{ matrix.no-extensions == '' }}
uses: py-actions/py-dependency-install@v3
Expand Down Expand Up @@ -158,7 +144,7 @@ jobs:
needs: pre-deploy
steps:
- name: Checkout
uses: actions/checkout@v2.3.4
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v3
- name: Install cython
Expand Down Expand Up @@ -195,7 +181,7 @@ jobs:
qemu: s390x
steps:
- name: Checkout
uses: actions/checkout@v2.3.4
uses: actions/checkout@3
- name: Set up QEMU
if: ${{ matrix.qemu }}
uses: docker/setup-qemu-action@v1
Expand Down Expand Up @@ -235,7 +221,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.3.4
uses: actions/checkout@v3
- name: Login
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token
Expand Down

0 comments on commit af8b25f

Please sign in to comment.