mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-12-19 04:05:42 +08:00
Snowykami
cc1bb8e5e4
Some checks failed
Docker Image Build / build (push) Failing after 29s
Deploy VitePress site to Pages / build (push) Failing after 53s
Pre-commit checks / pre-commit (3.10) (push) Failing after 2m17s
Pre-commit checks / pre-commit (3.11) (push) Failing after 2m1s
Pre-commit checks / pre-commit (3.13) (push) Failing after 2m18s
Pre-commit checks / pre-commit (3.12) (push) Failing after 2m57s
31 lines
745 B
YAML
31 lines
745 B
YAML
name: Pre-commit checks
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
pre-commit:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: ['3.10', '3.11', '3.12', '3.13'] # 添加你想要测试的 Python 版本
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v3
|
|
with:
|
|
python-version: ${{ matrix.python-version }} # 使用矩阵中的 Python 版本
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install pdm
|
|
python -m pip install pre-commit
|
|
pdm config python.use_venv false
|
|
pdm install --no-lock
|
|
pre-commit install
|
|
|
|
- name: Run pre-commit
|
|
run: pre-commit run --all-files
|