Skip to content

Commit 942bd07

Browse files
author
Ruinong Tian
committed
Add unit tests for uv
1 parent 65d95e5 commit 942bd07

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
ARG SAGEMAKER_DISTRIBUTION_IMAGE
2+
FROM $SAGEMAKER_DISTRIBUTION_IMAGE
3+
4+
ARG MAMBA_DOCKERFILE_ACTIVATE=1
5+
6+
RUN echo 'import requests; print(requests.get("https://astral.sh"))' > example.py
7+
8+
RUN uv add --script example.py requests
9+
CMD uv run example.py
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
ARG SAGEMAKER_DISTRIBUTION_IMAGE
2+
FROM $SAGEMAKER_DISTRIBUTION_IMAGE
3+
4+
ARG MAMBA_DOCKERFILE_ACTIVATE=1
5+
6+
RUN echo 'import requests; print(requests.get("https://astral.sh"))' > example.py
7+
8+
RUN uv add --script example.py requests
9+
CMD uv run example.py

0 commit comments

Comments
 (0)