nonebot2/.github/actions/setup-python/action.yml
StarHeart 113021cdf4
👷 CI: 测试环境添加 Python 3.11 (#1366)
Co-authored-by: yanyongyu <42488585+yanyongyu@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-11-04 09:29:13 +08:00

25 lines
463 B
YAML

name: Setup Python
description: Setup Python
inputs:
python-version:
description: Python version
required: false
default: "3.10"
runs:
using: "composite"
steps:
- name: Install poetry
run: pipx install poetry
shell: bash
- uses: actions/setup-python@v4
with:
python-version: ${{ inputs.python-version }}
architecture: "x64"
cache: "poetry"
- run: poetry install -E all
shell: bash