Skip to content

ci: Fix release workflow and pyproject.toml cleanup#450

Merged
e-lo merged 5 commits intomainfrom
fix/ci-release-workflow-cleanup
Apr 14, 2026
Merged

ci: Fix release workflow and pyproject.toml cleanup#450
e-lo merged 5 commits intomainfrom
fix/ci-release-workflow-cleanup

Conversation

@e-lo
Copy link
Copy Markdown
Collaborator

@e-lo e-lo commented Mar 20, 2026

Summary

  • Pin Python to 3.13 in prepare-release (fiona has no wheel for Python 3.14)
  • Replace import network_wrangler version check with grep/sed (avoids needing all deps installed just to read __version__)
  • Change publish trigger from release: [published] to workflow_run on Prepare Release completing successfully — publish now only runs if the full install test passed
  • Add actions/checkout@v4 to publish-docs job before calling the local composite action (was failing without it)
  • Fix pyproject.toml: SPDX license string instead of deprecated TOML table, remove deprecated license classifier, switch to setuptools auto-discovery so all sub-packages are included

Test plan

  • Merge to main, create a release, verify Prepare Release runs first and Publish Release only triggers after it succeeds
  • Verify publish-docs job no longer fails on missing checkout

🤖 Generated with Claude Code

@github-actions
Copy link
Copy Markdown
Contributor

📚 Documentation has been built and deployed!

View the docs for this PR: https://network-wrangler.github.io/network_wrangler/fix/ci-release-workflow-cleanup/

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 20, 2026

Coverage

Tests Skipped Failures Errors Time
255 4 💤 0 ❌ 0 🔥 7m 46s ⏱️

@github-actions
Copy link
Copy Markdown
Contributor

📊 Benchmark Comparison

Comparing PR branch to base branch main

No previous benchmark found in base branch. This will serve as the baseline.

@e-lo e-lo requested review from i-am-sijia and lmz March 23, 2026 20:54
e-lo and others added 2 commits April 14, 2026 08:34
- Pin Python to 3.13 in prepare-release (avoids fiona/GDAL failures on 3.14)
- Use grep/sed for version check instead of importing the package (avoids needing projectcard installed)
- Change publish trigger from release:[published] to workflow_run on Prepare Release succeeding
- Add checkout step to publish-docs job before local composite action
- Fix pyproject.toml: use SPDX license string, remove deprecated license classifier
- Switch to setuptools auto-discovery to include all sub-packages

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…js actions

- Slugify branch name before mike deploy (/ is not a valid version char)
- Add branch-slug output to get-branch-name action
- Remove continue-on-error from mike deploy so failures are visible
- Use branch-slug in PR docs comment URL
- Replace redundant actions/cache with setup-uv's built-in caching
- Upgrade actions/github-script v7→v8 (Node.js 24)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@e-lo e-lo force-pushed the fix/ci-release-workflow-cleanup branch from 2553fd5 to 44139ad Compare April 14, 2026 15:37
github-actions bot and others added 3 commits April 14, 2026 15:37
Auto-committing ruff fixes from CI uses GITHUB_TOKEN, which by GitHub's
anti-recursion policy does not trigger a follow-up workflow run. That
left auto-fix commits on PRs with no CI status.

Replace the auto-fix + commit flow with strict `ruff format --check`
and `ruff check`. Developers run ruff locally (the pre-commit hook
already does this) and push, which triggers CI normally.

Also drop the full Python setup for the lint job — just use
astral-sh/setup-uv@v5 and invoke ruff via uvx. Lint no longer needs
the package's dependencies installed.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
pd.api.types.is_numeric_dtype returns True for bool dtype (bool is an
integer subtype in numpy), so boolean columns like walk_access and
rail_only were being routed into the np.isclose path. On pandas 3,
where these columns land as the nullable BooleanDtype, np.isclose
calls np.isfinite on the extension array and fails with:
  TypeError: ufunc 'isfinite' not supported for the input types

Boolean columns should compare with direct equality anyway. Filter
them out of numeric_cols so they fall into the other_cols branch.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

📊 Benchmark Comparison

Comparing PR branch to base branch main

No previous benchmark found in base branch. This will serve as the baseline.

@e-lo e-lo merged commit 057434c into main Apr 14, 2026
11 checks passed
@e-lo e-lo deleted the fix/ci-release-workflow-cleanup branch April 14, 2026 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants