File tree Expand file tree Collapse file tree 2 files changed +45
-2
lines changed Expand file tree Collapse file tree 2 files changed +45
-2
lines changed Original file line number Diff line number Diff line change 1+ name : 4 GPU Unit Test
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+
8+ concurrency :
9+ group : unit-test${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_number || github.ref }}
10+ cancel-in-progress : true
11+
12+ defaults :
13+ run :
14+ shell : bash -l -eo pipefail {0}
15+
16+ jobs :
17+ unit_tests_4gpu :
18+ runs-on : linux.g5.12xlarge.nvidia.gpu
19+ strategy :
20+ matrix :
21+ python-version : ['3.10']
22+ steps :
23+ - name : Check out repo
24+ uses : actions/checkout@v3
25+ - name : Setup conda env
26+ uses : conda-incubator/setup-miniconda@v2
27+ with :
28+ auto-update-conda : true
29+ miniconda-version : " latest"
30+ activate-environment : test
31+ python-version : ${{ matrix.python-version }}
32+ - name : Update pip
33+ run : python -m pip install --upgrade pip
34+ - name : Install dependencies
35+ run : |
36+ pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu121
37+ python -m pip install -r requirements.txt
38+ python -m pip install -r dev-requirements.txt
39+ python -m pip install -e .
40+ - name : Run unit tests with coverage
41+ run : pytest test --cov=. --cov-report=xml --durations=20 -vv
42+ - name : Upload Coverage to Codecov
43+ uses : codecov/codecov-action@v3
Original file line number Diff line number Diff line change 1- name : Unit Test
1+ name : CPU Unit Test
22
33on :
44 push :
@@ -14,7 +14,7 @@ defaults:
1414 shell : bash -l -eo pipefail {0}
1515
1616jobs :
17- unit_tests :
17+ cpu_unit_tests :
1818 runs-on : ubuntu-latest
1919 strategy :
2020 matrix :
You can’t perform that action at this time.
0 commit comments