更新 pre-commit 工作流,优化依赖安装步骤并禁用虚拟环境使用

This commit is contained in:
远野千束(神羽) 2024-12-13 02:55:30 +08:00
parent 372085c2bd
commit c653dbf124

View File

@ -18,9 +18,8 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install pdm python -m pip install pdm
pdm install pdm config use_venv false
pdm install --no-lock
source .venv/bin/activate
pre-commit install pre-commit install
- name: Run pre-commit - name: Run pre-commit