Skip to content

Commit

Permalink
github-actions/install-pnl: Fix lookup of dep packages
Browse files Browse the repository at this point in the history
Check all requirements files.
account for -/_ ambiguity in package names.

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
  • Loading branch information
jvesely committed Apr 20, 2022
1 parent 0aa4359 commit 9299efa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/install-pnl/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ runs:
run: |
export NEW_PACKAGE=`echo '${{ github.head_ref }}' | cut -f 4 -d/ | sed 's/-gt.*//' | sed 's/-lt.*//'`
echo "::set-output name=new_package::$NEW_PACKAGE"
pip install "`grep $NEW_PACKAGE requirements*.txt | head -n1`"
pip install "`echo $NEW_PACKAGE | sed 's/[-_]/./g' | xargs grep *requirements.txt -h -e | head -n1`"
pip show "$NEW_PACKAGE" | grep 'Version' | tee new_version.deps
- name: Python dependencies
Expand Down

0 comments on commit 9299efa

Please sign in to comment.