Skip to content

Conversation

Perdiga
Copy link
Collaborator

@Perdiga Perdiga commented Jul 28, 2025

No description provided.

@Copilot Copilot AI review requested due to automatic review settings July 28, 2025 21:16
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR improves the GitHub Actions workflow for publishing development versions to TestPyPI. The changes enhance the version handling logic to properly parse and extract base versions while making the build number extraction more robust.

  • Updates workflow name to be more descriptive
  • Improves version parsing to handle existing .dev suffixes in pyproject.toml
  • Replaces sed-based build number extraction with a more compatible bash approach

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/test-publish.yml Updates workflow name to better reflect its purpose
.github/workflows/scripts/get_latest_build.sh Enhances version parsing logic and replaces sed with bash regex for better compatibility

BUILD_NUMBERS="$BUILD_NUMBERS ${BASH_REMATCH[1]}"
fi
done
BUILD_NUMBERS=$(echo $BUILD_NUMBERS | tr ' ' '\n' | sort -n)
Copy link

Copilot AI Jul 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable $BUILD_NUMBERS should be quoted to prevent word splitting. Change to: BUILD_NUMBERS=$(echo "$BUILD_NUMBERS" | tr ' ' '\n' | sort -n)

Suggested change
BUILD_NUMBERS=$(echo $BUILD_NUMBERS | tr ' ' '\n' | sort -n)
BUILD_NUMBERS=$(echo "$BUILD_NUMBERS" | tr ' ' '\n' | sort -n)

Copilot uses AI. Check for mistakes.

@Perdiga Perdiga changed the title Feature/workflow improvements Fix PEP 440 versioning Jul 28, 2025
@Perdiga Perdiga merged commit 894576d into main Jul 28, 2025
2 checks passed
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.

1 participant