Skip to content

Commit 06c29a2

Browse files
committed
add test for upload / download
Signed-off-by: Eli Uriegas <[email protected]>
1 parent 6dc1fe3 commit 06c29a2

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/test_windows_job.yml

+19
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,22 @@ jobs:
3333
python -m pip install --extra-index-url https://download.pytorch.org/whl/nightly/cu116 --pre torch
3434
# Can import pytorch, cuda is available
3535
python -c 'import torch;assert(torch.cuda.is_available())'
36+
test-upload-artifact:
37+
uses: ./.github/workflows/windows_job.yml
38+
with:
39+
runner: windows.4xlarge
40+
test-infra-repository: ${{ github.repository }}
41+
test-infra-ref: ${{ github.ref }}
42+
upload-artifact: my-cool-artifact
43+
script: |
44+
echo "hello" > "${RUNNER_ARTIFACT_DIR}/cool_beans"
45+
test-download-artifact:
46+
needs: test-upload-artifact
47+
uses: ./.github/workflows/windows_job.yml
48+
with:
49+
runner: windows.4xlarge
50+
test-infra-repository: ${{ github.repository }}
51+
test-infra-ref: ${{ github.ref }}
52+
download-artifact: my-cool-artifact
53+
script: |
54+
grep "hello" "${RUNNER_ARTIFACT_DIR}/cool_beans"

0 commit comments

Comments
 (0)