Skip to content

Commit

Permalink
Feat: Do not parse Python versions containing comments (#128)
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Watkins <[email protected]>
  • Loading branch information
ModeSevenIndustrialSolutions authored Jul 31, 2024
1 parent a3dd85a commit a684420
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/actions/python-versions-matrix/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,10 @@ runs:
fi
# Extract Python version string(s) from source
# Note: excludes any lines containing comments (#)
if [ -f "$REPO_DIR"/"$FILE_SOURCE" ]; then
PYTHON_VERSIONS=$(grep "Programming Language :: Python :: " \
"$REPO_DIR"/"$FILE_SOURCE" | \
"$REPO_DIR"/"$FILE_SOURCE" | grep -v '#' | \
sed "s/Programming Language :: Python :: //g" | \
sed 's/"3 :: Only",//g' | \
sed 's/"3",//g' | \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
jobs:
update:
name: "Run: pdm-project/update-deps-action"
uses: os-climate/devops-reusable-workflows/.github/workflows/python-dependencies-reusable@main
uses: os-climate/devops-reusable-workflows/.github/workflows/python-dependencies-reusable.yaml@main
with:
sign-off-commit: "true"
# token: ${{ secrets.GH_TOKEN }}
Expand Down

0 comments on commit a684420

Please sign in to comment.