mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-28 16:16:21 +08:00
27 lines
582 B
YAML
27 lines
582 B
YAML
name: Setup Python
|
|
description: Setup Python
|
|
|
|
inputs:
|
|
python-version:
|
|
description: Python version
|
|
required: false
|
|
default: "3.9"
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- uses: actions/setup-python@v2
|
|
with:
|
|
python-version: ${{ inputs.python-version }}
|
|
architecture: "x64"
|
|
|
|
- uses: Gr1N/setup-poetry@v7
|
|
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: ~/.cache/pypoetry/virtualenvs
|
|
key: ${{ runner.os }}-poetry-${{ inputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
|
|
|
|
- run: poetry install -E all
|
|
shell: bash
|