bbcf80e0ca
CI / Lint, Typecheck & Test (push) Has been cancelled
将原有的lint、typecheck和测试工作流合并为单个CI任务,重构release工作流以支持Gitea发布,简化pypi发布步骤
32 lines
595 B
YAML
32 lines
595 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ main, develop ]
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
ci:
|
|
name: Lint, Typecheck & Test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: astral-sh/setup-uv@v5
|
|
with:
|
|
enable-cache: true
|
|
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: |
|
|
3.8
|
|
3.13
|
|
|
|
- run: uv sync
|
|
- run: uv run ruff check src tests
|
|
- run: uv run pyrefly check .
|
|
- run: uvx tox run -e py38,py313
|