diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 86898f4..621ac4d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,13 +33,17 @@ jobs: wheel-distribution: ${{ steps.wheel-distribution.outputs.path }} steps: - uses: actions/checkout@v4 - with: {fetch-depth: 0} # deep clone for setuptools-scm + with: + fetch-depth: 0 # deep clone for setuptools-scm + ref: ${{ github.ref }} # ensure tags are checked out correctly - uses: actions/setup-python@v5 id: setup-python with: {python-version: "3.12"} - name: Run static analysis and format checkers continue-on-error: true run: pipx run pre-commit run --all-files --show-diff-on-failure + - name: Reset any changes from linting + run: git reset --hard HEAD - name: Build package distribution files run: >- pipx run --python '${{ steps.setup-python.outputs.python-path }}' diff --git a/CHANGELOG.md b/CHANGELOG.md index 12eb67e..6465071 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## [Unreleased] ### Fixed +- 2025-11-19: Fixed PyPI version generation to produce clean version numbers (e.g., 0.1.3) instead of post/dev suffixes (e.g., 0.1.3.post1.dev0) when creating releases via GitHub UI by: (1) ensuring the CI workflow checks out the exact tag commit, and (2) resetting any uncommitted changes from linting before building to avoid setuptools_scm detecting a dirty repository. - 2025-11-19: Fixed ImportError by removing non-existent flow imports (custom_movements_flow, test_sequence_flow, duty_cycle_monitoring_flow, scheduled_duty_cycle_check) from src/progressive_automations_python/__init__.py. These flows only exist in scripts/prefect_flows.py, not in the package module. (Fixes job 55773363544) - 2025-11-19: tests: Add tests/conftest.py to mock RPi.GPIO in CI so pytest can run in non-Raspberry Pi environments. (Fixes job 55770449647)