mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-marshoai.git
synced 2025-01-26 18:12:47 +08:00
28 lines
605 B
YAML
28 lines
605 B
YAML
name: Pre-commit checks
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
pre-commit:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v3
|
|
with:
|
|
python-version: '3.10' # 选择适合你的项目的 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
|