Files
pyflowx/.github/workflows/ci.yml
T
zhou 35f07e96e1
CI / Lint, Typecheck & Test (push) Failing after 1m18s
ci: 更新CI和release工作流配置
1. 将CI容器镜像从固定版本改为latest
2. 简化PyPI发布步骤,改用uv publish命令
3. 重构Gitea发布脚本,优化release创建和资产上传流程
2026-07-04 10:45:35 +08:00

35 lines
828 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
container:
image: pyflowx-ci:latest
env:
UV_LINK_MODE: copy
# ---- 国内源 ----
PIP_INDEX_URL: https://pypi.tuna.tsinghua.edu.cn/simple
PIP_TRUSTED_HOST: pypi.tuna.tsinghua.edu.cn
UV_INDEX_URL: https://pypi.tuna.tsinghua.edu.cn/simple
UV_TRUSTED_HOST: pypi.tuna.tsinghua.edu.cn
steps:
- uses: http://gitea:3000/zhou/checkout.git@main
- name: Sync dependencies
run: uv sync --frozen
- name: Ruff check
run: ruff check src tests
- name: Tox test (py38, py313)
run: uvx tox run -e py38,py313