Skip to content

Commit

Permalink
Update install-env and release-docs workflows
Browse files Browse the repository at this point in the history
- Update actions to latest versions
- Update Python version to 3.12.3 in release-docs workflow
- Increment Poetry installation cached key in install-env workflow
  • Loading branch information
gbolmier committed Jul 9, 2024
1 parent 969a5c0 commit 6ceda42
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/actions/install-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ runs:
using: "composite"
steps:
- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4

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

- name: Load cached Poetry installation
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.local # the path depends on the OS
key: poetry-1 # increment to reset cache
key: poetry-2 # increment to reset cache

- name: Install poetry
uses: snok/install-poetry@v1
Expand All @@ -37,7 +37,7 @@ runs:

- name: Load cached virtual env
id: cached-poetry-dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.set-up-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Build River
uses: ./.github/actions/install-env
with:
python-version: "3.12"
python-version: "3.12.3"

- name: Install extra Ubuntu dependencies
run: sudo apt-get install graphviz pandoc
Expand Down

0 comments on commit 6ceda42

Please sign in to comment.