-
Notifications
You must be signed in to change notification settings - Fork 27
39 lines (39 loc) · 1014 Bytes
/
_setup.yml
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
37
38
39
# ---
# name: Setup Python and install dependencies
#
# on:
# workflow_call:
# inputs:
# python_version:
# type: string
# required: false
# default: "3.8"
# extras:
# type: string
# required: false
# default: ""
#
# jobs:
# setup:
# runs-on: ubuntu-latest
# outputs:
# cache-key: ${{ steps.cache-deps.outputs.cache-key }}
# steps:
# - uses: actions/checkout@v4
#
# - uses: actions/setup-python@v5
# with:
# python-version: ${{ inputs.python_version }}
#
# - name: Set up cache
# id: cache-deps
# uses: actions/cache@v3
# with:
# path: ~/.cache/pypoetry
# key: ${{ runner.os }}-python-${{ inputs.python_version }}-${{ hashFiles('**/poetry.lock') }}
#
# - name: Install dependencies
# run: |
# pip install --upgrade pip poetry
# poetry config virtualenvs.create false
# poetry install ${{ inputs.extras }}