From 44536f961a392afa327e50472bd34ea060b8cd71 Mon Sep 17 00:00:00 2001 From: zzstoatzz Date: Mon, 9 Dec 2024 14:22:26 -0600 Subject: [PATCH 1/2] update `entrypoint.sh` to use `uv` for `EXTRA_PIP_PACKAGES` --- scripts/entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh index 1846618dbce1..3c780321ef1d 100755 --- a/scripts/entrypoint.sh +++ b/scripts/entrypoint.sh @@ -8,8 +8,8 @@ if [ -f ~/.bashrc ]; then fi if [ ! -z "$EXTRA_PIP_PACKAGES" ]; then - echo "+pip install $EXTRA_PIP_PACKAGES" - pip install $EXTRA_PIP_PACKAGES + echo "+uv pip install $EXTRA_PIP_PACKAGES" + uv pip install --system $EXTRA_PIP_PACKAGES fi if [ -z "$*" ]; then From 13d2f894995ca00eb1430b53ce4ce3653d0e4bca Mon Sep 17 00:00:00 2001 From: zzstoatzz Date: Mon, 9 Dec 2024 14:27:33 -0600 Subject: [PATCH 2/2] run tests on changes to `entrypoint.sh` --- .github/workflows/python-tests.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-tests.yaml b/.github/workflows/python-tests.yaml index ea0230832677..33af87e3b9f4 100644 --- a/.github/workflows/python-tests.yaml +++ b/.github/workflows/python-tests.yaml @@ -16,6 +16,7 @@ on: - requirements-dev.txt - setup.cfg - Dockerfile + - scripts/entrypoint.sh push: branches: - main @@ -28,7 +29,7 @@ on: - requirements-dev.txt - setup.cfg - Dockerfile - + - scripts/entrypoint.sh permissions: contents: read actions: write