-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
33 lines (28 loc) · 966 Bytes
/
action.yml
File metadata and controls
33 lines (28 loc) · 966 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
name: Install Python Modules
runs:
using: composite
steps:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Cache Poetry
uses: actions/cache@v3
id: poetry_cache_id
with:
path: ~/.cache/pypoetry
key: poetry-cache-${{ runner.os }}-${{ env.PYTHON_VERSION }}-${{ env.POETRY_VERSION }}
- name: Setup Poetry
if: steps.poetry_cache_id.outputs.cache-hit != 'true'
run: curl -sSL https://install.python-poetry.org | python3 -
shell: bash
- name: Cache Poetry Packages
uses: actions/cache@v3
id: poetry_packages_cache_id
with:
path: ~/.local
key: poetry-packages-cache-${{ runner.os }}-${{ env.PYTHON_VERSION }}-${{ hashFiles('**/poetry.lock') }}
- name: Install Poetry Packages
if: steps.poetry_packages_cache_id.outputs.cache-hit != 'true'
run: poetry install --no-root
shell: bash