Skip to content

Commit

Permalink
Update action version for workflow steps
Browse files Browse the repository at this point in the history
  • Loading branch information
karls committed Jul 1, 2024
1 parent 16e9814 commit 2e0d95b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
- name: Release
id: release
uses: google-github-actions/release-please-action@v3
uses: googleapis/release-please-action@v4
with:
release-type: python
package-name: judoscale
Expand All @@ -28,23 +28,23 @@ jobs:
if: ${{ needs.release-please.outputs.release_created == 'true' }}
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Python
id: setup-python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.9

- name: Cache Poetry install
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.local
# NB! Update key when Poetry version is updated
key: python-${{ steps.setup-python.outputs.python-version }}-poetry-1.2.2

- name: Install Poetry
uses: snok/install-poetry@v1.3.3
uses: snok/install-poetry@v1
with:
# NB! Update Poetry cache key when updating Poetry version
version: 1.2.2
Expand All @@ -53,7 +53,7 @@ jobs:

- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: .venv
key: venv-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,23 @@ jobs:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
id: setup-python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Cache Poetry install
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.local
# NB! Update key when Poetry version is updated
key: python-${{ steps.setup-python.outputs.python-version }}-poetry-1.2.2

- name: Install Poetry
uses: snok/install-poetry@v1.3.3
uses: snok/install-poetry@v1
with:
# NB! Update Poetry cache key when updating Poetry version
version: 1.2.2
Expand All @@ -34,7 +34,7 @@ jobs:

- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: .venv
key: venv-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
Expand Down

0 comments on commit 2e0d95b

Please sign in to comment.