@@ -47,35 +47,35 @@ jobs:
4747
4848 - name : Create local directory for volume mount
4949 run : |
50- mkdir -p /tmp /test-volume
51- chmod 777 /tmp /test-volume
52- ls -la /tmp /test-volume
50+ mkdir -p ${{ github.workspace }} /test-volume
51+ chmod 777 ${{ github.workspace }} /test-volume
52+ ls -la ${{ github.workspace }} /test-volume
5353
5454 - name : Run Docker container with volume mount and write file
5555 run : |
5656 docker run --rm \
57- -v /tmp /test-volume:/app/data \
57+ -v ${{ github.workspace }} /test-volume:/app/data \
5858 alpine:latest \
5959 /bin/sh -c "echo 'Hello from Docker!' > /app/data/test.txt && ls -la /app/data"
6060
61- - name : Debug - List contents of /tmp
62- run : ls -la /tmp
61+ - name : Debug - List contents of ${{ github.workspace }}
62+ run : ls -la ${{ github.workspace }}
6363
64- - name : Debug - List contents of /tmp /test-volume
65- run : ls -la /tmp /test-volume
64+ - name : Debug - List contents of ${{ github.workspace }} /test-volume
65+ run : ls -la ${{ github.workspace }} /test-volume
6666
6767 - name : Verify file was written to local volume
6868 run : |
69- if [ -f /tmp /test-volume/test.txt ]; then
69+ if [ -f ${{ github.workspace }} /test-volume/test.txt ]; then
7070 echo "File exists in mounted volume"
71- cat /tmp /test-volume/test.txt
71+ cat ${{ github.workspace }} /test-volume/test.txt
7272 else
7373 echo "File does not exist in mounted volume"
7474 exit 1
7575 fi
7676
7777 - name : Run Hugging Face DLCs Tests
78- run : uv run pytest -s tests/
78+ run : uv run pytest -s --basetemp=${{ github.workspace }} tests/
7979 env :
8080 TRAINING_DLC : ${{ inputs.training-dlc }}
8181 INFERENCE_DLC : ${{ inputs.inference-dlc }}
0 commit comments