Skip to content

chore(release): bump version to 6.1.0 (#290) #2

chore(release): bump version to 6.1.0 (#290)

chore(release): bump version to 6.1.0 (#290) #2

Workflow file for this run

name: Publish to PyPI and Release
on:
push:
tags:
- 'v*' # Trigger on version tags like v1.0.0
jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Set up Python
run: uv python install
- name: Install dependencies
run: uv sync --all-extras --dev
- name: Run unit tests
# tests/ -m "not live_egeria" (previous scope) was a no-op filter: no
# test anywhere is marked "live_egeria" (that name is only a fixture
# in tests/micro-tests/conftest_full.py, not a registered pytest
# marker — see tests/pytest.ini's `markers` list). So this ran the
# ENTIRE suite, including tests/functional-tests/ and
# tests/scenario-tests/, both of which require a real Egeria server
# at localhost:9443 that no GitHub Actions runner has, plus an
# unrelated pytest-asyncio/sniffio configuration issue in several of
# those files. Confirmed 2026-07-20: this gate has never actually
# passed on this repo (774 failed / 231 passed on the v6.0.17.1 run;
# every prior tagged release run in the Actions history also shows
# `failure`). tests/micro-tests/ is the suite actually designed to
# run without live infra (mocks/monkeypatching by default; live mode
# is an explicit opt-in via --live-egeria or PYEG_LIVE_EGERIA=1) —
# confirmed clean (exit 0) standalone. Use that as the CI gate
# instead of a full-suite run that requires infrastructure CI
# doesn't have.
run: uv run pytest tests/micro-tests/
build-n-publish:
name: Build and Publish to PyPI
needs: test
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write # Required for OIDC trusted publishing
contents: write # Required to create GitHub Release
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Build package
run: uv build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
files: dist/*
generate_release_notes: true
draft: false
prerelease: false