Skip to content

Commit

Permalink
Bump actions to latest major version: checkout, cache, setup-python
Browse files Browse the repository at this point in the history
  • Loading branch information
brainsik committed Aug 12, 2024
1 parent a51a718 commit d31d2c4
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: pip cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ github.job }}-${{ env.pip-cache-key }}
restore-keys: |
${{ runner.os }}-pip-
- name: pre-commit cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
Expand All @@ -40,10 +40,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: pip cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ github.job }}-${{ env.pip-cache-key }}
Expand Down Expand Up @@ -72,24 +72,22 @@ jobs:
needs: [lint, build]
runs-on: ubuntu-latest
strategy:
# You can use PyPy versions in python-version.
# For example, pypy-2.7 and pypy-3.8
matrix:
python-version: ["2.7", "3.8", "3.9", "3.10", "3.11", "3.12", "pypy-3.10"]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: pip cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ github.job }}-${{ env.pip-cache-key }}
restore-keys: |
${{ runner.os }}-pip-
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand Down

0 comments on commit d31d2c4

Please sign in to comment.