-
Notifications
You must be signed in to change notification settings - Fork 293
37 lines (36 loc) · 1.04 KB
/
_linux-test-cuda.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: linux-test-cuda
on:
workflow_call:
secrets:
HUGGING_FACE_HUB_TOKEN:
required: false
description: |
HF Auth token to avoid rate limits when downloading models or datasets from hub
jobs:
linux-test-cuda:
# Don't run on forked repos
if: github.repository_owner == 'pytorch'
runs-on: linux.aws.a100
timeout-minutes: 240
environment: docker-s3-upload
env:
CONDA_ENV: "pr-test-cuda"
TEST_CONFIG: "cuda"
HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
steps:
- name: Checkout TorchBench
uses: actions/checkout@v3
- name: Install Conda
run: |
bash ./.ci/torchbench/install-conda.sh
- name: Install TorchBench
run: |
bash ./.ci/torchbench/install.sh
- name: Test TorchBench
run: |
bash ./.ci/torchbench/test.sh
- name: Clean up Conda env
if: always()
run: |
. ${HOME}/miniconda3/etc/profile.d/conda.sh
conda remove -n "${CONDA_ENV}" --all