From b503500cc9bc15b443d48bac87d92e40cd97f3e8 Mon Sep 17 00:00:00 2001 From: Scott K Logan Date: Fri, 1 Mar 2024 13:03:30 -0600 Subject: [PATCH] Normalize package name detected by pip list --- action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yaml b/action.yaml index 2eb4ced..ecb47d5 100644 --- a/action.yaml +++ b/action.yaml @@ -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