Skip to content

Commit 801b855

Browse files
committed
fix(test): support pyproject for pip projects
1 parent 6061157 commit 801b855

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/action.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ runs:
5151
echo "manager=poetry" >> $GITHUB_OUTPUT
5252
elif [[ -f "uv.lock" ]]; then
5353
echo "manager=uv" >> $GITHUB_OUTPUT
54-
elif [[ -f "requirements.txt" ]]; then
54+
elif [[ -f "requirements.txt" ]] || [[ -f "pyproject.toml" ]]; then
5555
echo "manager=pip" >> $GITHUB_OUTPUT
5656
else
57-
echo "::error::No package manager configuration found (poetry.lock/uv.lock/requirements.txt)"
57+
echo "::error::No package manager configuration found (poetry.lock/uv.lock/requirements.txt/pyproject.toml)"
5858
exit 1
5959
fi
6060

0 commit comments

Comments
 (0)