Code Quality Pipeline / code-quality (pull_request) Failing after 1s
Test Python Package / unit-tests (pull_request) Failing after 0s
Test Python Package / integration-tests (pull_request) Failing after 0s
PR Title Check / check-title (pull_request) Successful in 6s
Test Python Package / coverage-report (pull_request) Has been skipped
Pre-build Python, uv, and locked deps in a Gitea container image so daily jobs skip repeated bootstrap; document runner registry auth and ci-bot credentials. Co-authored-by: Cursor <[email protected]>
38 lines
1006 B
YAML
38 lines
1006 B
YAML
# Gitea Actions workflow to build and publish Python package to Gitea Package Registry
|
|
|
|
name: Publish Python Package
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*.*.*"
|
|
|
|
jobs:
|
|
build-and-publish:
|
|
runs-on: python-repositories-ci
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Update version in pyproject.toml to match tag
|
|
env:
|
|
UV_INDEX_GITEA_USERNAME: ci-bot
|
|
UV_INDEX_GITEA_PASSWORD: ${{ secrets.CI_RUNNER_TOKEN }}
|
|
run: scripts/ci/bump-version.sh --from-tag "${GITHUB_REF##*/}"
|
|
|
|
- name: Build package
|
|
env:
|
|
UV_LINK_MODE: copy
|
|
UV_INDEX_GITEA_USERNAME: ci-bot
|
|
UV_INDEX_GITEA_PASSWORD: ${{ secrets.CI_RUNNER_TOKEN }}
|
|
run: |
|
|
uv sync --no-dev --frozen
|
|
uv build
|
|
|
|
- name: Publish to Gitea Package Registry
|
|
env:
|
|
UV_PUBLISH_TOKEN: ${{ secrets.CI_RUNNER_TOKEN }}
|
|
UV_PUBLISH_URL: ${{ vars.REPOSITORY_URL }}
|
|
run: |
|
|
uv publish
|