diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 94e924b..f2d714b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5a89425..e512771 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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' }}