Skip to content

Commit

Permalink
Normalize package name detected by pip list (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
cottsay authored Mar 4, 2024
1 parent 06bb7b5 commit e05c852
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 e05c852

Please sign in to comment.