forked from khanlab/scattr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add composite action to set up pyenv
- Loading branch information
Showing
2 changed files
with
33 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Setup python environment | ||
description: Install python environment from cache | ||
inputs: | ||
python-version: | ||
required: true | ||
description: Python version(s) to install | ||
reference: | ||
required: true | ||
description: > | ||
Reference ID to use for defining poetry cache (e.g. PR id or commit SHA) | ||
runs: | ||
using: composite | ||
steps: | ||
# Install & configure poetry | ||
- name: Cache Poetry installation | ||
id: cached-poetry | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.local | ||
key: ${{ runner.os }}-poetry-${{ inputs.reference }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters