mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
- 移除了 setup-python 操作中的 cache-dependency-path 设置 - 从 release-drafter.yml 中删除了 poetry.lock 文件的引用 - 在 bot_check 工作流中移除了删除 poetry.lock 的步骤
38 lines
810 B
YAML
38 lines
810 B
YAML
name: Setup Python
|
|
description: Setup Python
|
|
|
|
inputs:
|
|
python-version:
|
|
description: Python version
|
|
required: false
|
|
default: "3.10"
|
|
env-dir:
|
|
description: Environment directory
|
|
required: false
|
|
default: "."
|
|
no-root:
|
|
description: Do not install package in the environment
|
|
required: false
|
|
default: "false"
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Install poetry
|
|
run: pipx install poetry
|
|
shell: bash
|
|
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ inputs.python-version }}
|
|
cache: "poetry"
|
|
|
|
- run: |
|
|
cd ${{ inputs.env-dir }}
|
|
if [ "${{ inputs.no-root }}" = "true" ]; then
|
|
poetry install --all-extras --no-root
|
|
else
|
|
poetry install --all-extras
|
|
fi
|
|
shell: bash
|