Skip to content

Commit

Permalink
fix(test): support pyproject for pip projects
Browse files Browse the repository at this point in the history
  • Loading branch information
armand-sauzay committed Dec 31, 2024
1 parent 6061157 commit 801b855
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ runs:
echo "manager=poetry" >> $GITHUB_OUTPUT
elif [[ -f "uv.lock" ]]; then
echo "manager=uv" >> $GITHUB_OUTPUT
elif [[ -f "requirements.txt" ]]; then
elif [[ -f "requirements.txt" ]] || [[ -f "pyproject.toml" ]]; then
echo "manager=pip" >> $GITHUB_OUTPUT
else
echo "::error::No package manager configuration found (poetry.lock/uv.lock/requirements.txt)"
echo "::error::No package manager configuration found (poetry.lock/uv.lock/requirements.txt/pyproject.toml)"
exit 1
fi
Expand Down

0 comments on commit 801b855

Please sign in to comment.