Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing the migration testing for the release branches #3127

Merged
merged 2 commits into from
Oct 23, 2024
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
2 changes: 1 addition & 1 deletion scripts/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fi

# checks for yaml formatting errors
if [ "$SKIP_YAMLFIX" = false ]; then
yamlfix --check .github tests --exclude "dependabot.yml"
yamlfix --check .github tests -e "dependabot.yml" -e "workflows/release_prepare.yml" -e "workflows/release_finalize.yml"
fi

# autoflake replacement: checks for unused imports and variables
Expand Down
8 changes: 5 additions & 3 deletions scripts/test-migrations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ fi
VERSIONS=("0.40.3" "0.43.0" "0.44.3" "0.45.6" "0.47.0" "0.50.0" "0.51.0" "0.52.0" "0.53.1" "0.54.1" "0.55.5" "0.56.4" "0.57.1" "0.60.0" "0.61.0" "0.62.0" "0.63.0" "0.64.0" "0.65.0")

# Include latest release dynamically, if not there already
CURRENT_VERSION=$(cat src/zenml/VERSION)
if [[ ! " ${VERSIONS[@]} " =~ " ${CURRENT_VERSION} " ]]; then
VERSIONS+=("${CURRENT_VERSION}")
LATEST_RELEASE=$(gh release view --json tagName -q '{tag: .tagName}')
LATEST_VERSION=$(echo "$LATEST_RELEASE" | jq -r .tag)

if [[ ! " ${VERSIONS[@]} " =~ " ${LATEST_VERSION} " ]]; then
VERSIONS+=("${LATEST_VERSION}")
fi

# Function to compare semantic versions
Expand Down
Loading