mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-09-05 19:46:47 +00:00
🧑💻 Dev: 迁移使用 uv 管理项目依赖 (#3607)
This commit is contained in:
7
.github/workflows/pyright.yml
vendored
7
.github/workflows/pyright.yml
vendored
@ -13,7 +13,7 @@ on:
|
||||
- ".github/actions/setup-python/**"
|
||||
- ".github/workflows/pyright.yml"
|
||||
- "pyproject.toml"
|
||||
- "poetry.lock"
|
||||
- "uv.lock"
|
||||
|
||||
jobs:
|
||||
pyright:
|
||||
@ -33,11 +33,10 @@ jobs:
|
||||
- name: Setup Python environment
|
||||
uses: ./.github/actions/setup-python
|
||||
with:
|
||||
env-dir: ./envs/${{ matrix.env }}
|
||||
no-root: true
|
||||
env-group: ${{ matrix.env }}
|
||||
|
||||
- run: |
|
||||
(cd ./envs/${{ matrix.env }} && echo "$(poetry env info --path)/bin" >> $GITHUB_PATH)
|
||||
echo "$(dirname $(uv python find))" >> $GITHUB_PATH
|
||||
if [ "${{ matrix.env }}" = "pydantic-v1" ]; then
|
||||
sed -i 's/PYDANTIC_V2 = true/PYDANTIC_V2 = false/g' ./pyproject.toml
|
||||
fi
|
||||
|
Reference in New Issue
Block a user