-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaction.yml
More file actions
36 lines (31 loc) · 873 Bytes
/
action.yml
File metadata and controls
36 lines (31 loc) · 873 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: "Setup Environment"
description: "Sets up Python, Poetry, and dependencies with caching"
inputs:
python-version:
description: "Python version to use"
required: false
default: "3.14"
cache-key-suffix:
description: "Additional suffix for cache key"
required: false
default: ""
runs:
using: "composite"
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
- name: Install Poetry
shell: bash
run: pip install poetry
- name: Cache Poetry dependencies
uses: actions/cache@v4
with:
path: |
~/.cache/pypoetry
~/.poetry
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}${{ inputs.cache-key-suffix }}
- name: Install dependencies
shell: bash
run: poetry install