Skip to content

Commit

Permalink
Normalize package name detected by pip list
Browse files Browse the repository at this point in the history
  • Loading branch information
cottsay committed Mar 2, 2024
1 parent 696193d commit b503500
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ runs:
echo ::group::Install dependencies
# Remove this package from constraints
PKG_NAME=$(pip list --local --editable --format json | jq '.[0].name' -r)
PKG_NAME=$(pip list -l -e --format json | jq '.[0].name' -r | tr _ -)
grep -v "^${PKG_NAME}@" ${GITHUB_ACTION_PATH}/constraints.txt > constraints.txt
# Install dependencies, including any 'test' extras, as well as pytest-cov
python -m pip install -U -e .[test] pytest-cov -c constraints.txt
Expand Down

0 comments on commit b503500

Please sign in to comment.