ci(github workflows): 优化CI/CD流程,使用自定义容器并简化步骤
CI / Lint, Typecheck & Test (push) Failing after 23s

1. 为CI和release任务添加自定义pyflowx-ci容器并配置UV链接模式
2. 移除冗余的setup-uv和setup-python步骤,合并依赖同步、代码检查命令
3. 简化步骤命名和执行逻辑,统一使用uv管理工具链
This commit is contained in:
2026-07-03 07:50:59 +08:00
parent 1d26f9d3e7
commit 4446658170
2 changed files with 21 additions and 25 deletions
+13 -13
View File
@@ -12,21 +12,21 @@ jobs:
ci:
name: Lint, Typecheck & Test
runs-on: ubuntu-latest
container:
image: pyflowx-ci:latest
env:
UV_LINK_MODE: copy
steps:
- uses: http://gitea:3000/zhou/checkout.git@main
- uses: http://gitea:3000/zhou/setup-uv.git@v8.1.0
with:
uv-version: "0.11.26"
enable-cache: true
- name: Sync dependencies
run: uv sync --frozen || uv sync
- uses: http://gitea:3000/zhou/setup-python.git@v6
with:
python-version: |
3.8
3.13
- name: Ruff check
run: ruff check src tests
- run: uv sync
- run: uv run ruff check src tests
- run: uv run pyrefly check .
- run: uvx tox run -e py38,py313
- name: Pyrefly check
run: pyrefly check .
- name: Tox test (py38, py313)
run: uvx tox run -e py38,py313
+8 -12
View File
@@ -11,20 +11,18 @@ jobs:
release:
name: Build, Publish & Release
runs-on: ubuntu-latest
container:
image: pyflowx-ci:latest
env:
UV_LINK_MODE: copy
steps:
- uses: http://gitea:3000/zhou/checkout.git@v4
- uses: http://gitea:3000/zhou/setup-uv.git@v8.1.0
with:
enable-cache: true
- name: Build distributions
run: uv build
- uses: http://gitea:3000/zhou/setup-python.git@v6
with:
python-version: '3.13'
- run: uv build
- uses: http://gitea:3000/zhou/gh-action-pypi-publish.git@release/v1
- name: Publish to PyPI
uses: http://gitea:3000/zhou/gh-action-pypi-publish.git@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
@@ -43,5 +41,3 @@ jobs:
-H "Content-Type: application/octet-stream" \
--data-binary @"$file"
done
env:
GITEA_URL: ${{ secrets.GITEA_URL || 'https://git.gookeryoung.cn' }}