-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaction.yml
More file actions
21 lines (19 loc) · 660 Bytes
/
action.yml
File metadata and controls
21 lines (19 loc) · 660 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
name: 'Setup Python'
description: 'A composite action to setup Python project.'
inputs:
python-version:
description: 'Set a Python version, e.g. 3.10.3'
default: '3.10'
required: false
runs:
using: "composite"
steps:
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: ${{ inputs.python-version }}
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: ~/.local/share/virtualenvs
key: ${{ runner.os }}-pipenv-${{ hashFiles('**/Pipfile.lock') }}
- run: python3 -m pip install --upgrade pip pipenv
shell: bash