Skip to content
This repository was archived by the owner on Jun 24, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 2 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,35 +82,17 @@ jobs:
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

version-check:
name: Version Consistency
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "latest"

- name: Set up Python
run: uv python install 3.13

- name: Check version consistency
run: uv run python scripts/check_version.py

all-checks:
name: All Checks Passed
runs-on: ubuntu-latest
needs: [lint, typecheck, test, version-check]
needs: [lint, typecheck, test]
if: always()
steps:
- name: Check all jobs passed
run: |
if [[ "${{ needs.lint.result }}" != "success" ]] || \
[[ "${{ needs.typecheck.result }}" != "success" ]] || \
[[ "${{ needs.test.result }}" != "success" ]] || \
[[ "${{ needs.version-check.result }}" != "success" ]]; then
[[ "${{ needs.test.result }}" != "success" ]]; then
echo "One or more jobs failed"
exit 1
fi
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release

on:
push:
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: false

jobs:
release:
name: Semantic Release
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Python Semantic Release
id: release
uses: python-semantic-release/python-semantic-release@v10.2.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
16 changes: 16 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -147,3 +147,19 @@ dev = [
"types-bleach>=6.3.0.20251115",
"types-markdown>=3.10.0.20251106",
]

[tool.semantic_release]
version_toml = ["pyproject.toml:project.version"]
version_variables = [
"src/__init__.py:__version__",
"src/config.py:app_version",
]
tag_format = "v{version}"
commit_message = "chore(release): {version}"
branch = "main"

[tool.semantic_release.changelog]
changelog_file = "CHANGELOG.md"

[tool.semantic_release.remote]
type = "github"
98 changes: 0 additions & 98 deletions scripts/check_version.py

This file was deleted.