3 Commits
Author SHA1 Message Date
valknarandClaude Sonnet 5 3ba012f08c Bump version to 1.0.1
CI / Checks (push) Successful in 10s
CI / Publish to PyPI registry (push) Successful in 12s
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-18 07:55:13 +02:00
valknar 74a0d2e01f fix: actually stage the checks/publish split
CI / Checks (push) Successful in 10s
CI / Publish to PyPI registry (push) Skipped
Same slip as triggershell's equivalent fix: git mv reuses the already-
indexed blob for the source path rather than re-hashing the working
tree, so it silently ignores unstaged edits made before the rename.
The previous commit renamed release.yaml to ci.yml but carried over
the old single-job content underneath it. This is the content that
commit was supposed to carry.
2026-08-17 17:40:16 +02:00
valknar eba9c04e02 ci: run checks on every push, publish only on tag
Same split as pulsenode's workflow: previously this only ran at all
when pushing a version tag, so ruff/pytest never ran on regular
commits or PRs - a broken push could sit unnoticed until someone tried
to cut a release. Now checks run on every push and PR; publish to the
PyPI registry stays gated to a tag push and requires checks to pass
first. Renamed release.yaml -> ci.yml to match.
2026-08-17 17:39:06 +02:00
2 changed files with 20 additions and 5 deletions
@@ -1,12 +1,12 @@
name: Release name: CI
on: on:
push: push:
tags: pull_request:
- "v*.*.*"
jobs: jobs:
release: checks:
name: Checks
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: https://github.com/actions/checkout@v4 - uses: https://github.com/actions/checkout@v4
@@ -26,6 +26,21 @@ jobs:
- run: pytest - run: pytest
publish:
name: Publish to PyPI registry
if: startsWith(github.ref, 'refs/tags/')
needs: checks
runs-on: ubuntu-latest
steps:
- uses: https://github.com/actions/checkout@v4
- uses: https://github.com/actions/setup-python@v5
with:
python-version: "3.12"
- name: Install build dependencies
run: pip install ".[dev]" build twine
- name: Set package version from the tag - name: Set package version from the tag
run: sed -i "s/^__version__ = .*/__version__ = \"${GITHUB_REF_NAME#v}\"/" src/openrgb_hue/__init__.py run: sed -i "s/^__version__ = .*/__version__ = \"${GITHUB_REF_NAME#v}\"/" src/openrgb_hue/__init__.py
+1 -1
View File
@@ -1,6 +1,6 @@
from openrgb_hue.color import Color from openrgb_hue.color import Color
from openrgb_hue.gradient import Gradient, Stop from openrgb_hue.gradient import Gradient, Stop
__version__ = "0.1.0" __version__ = "1.0.1"
__all__ = ["Color", "Gradient", "Stop", "__version__"] __all__ = ["Color", "Gradient", "Stop", "__version__"]