File tree Expand file tree Collapse file tree 1 file changed +15
-23
lines changed
Expand file tree Collapse file tree 1 file changed +15
-23
lines changed Original file line number Diff line number Diff line change @@ -11,32 +11,24 @@ jobs:
1111 strategy :
1212 matrix :
1313 os :
14- - ubuntu-20.04
14+ - " linux.2xlarge "
1515 - " linux.4xlarge.nvidia.gpu"
16- runs-on : ${{ matrix.os }}
17- steps :
18- - name : Setup Python
19- uses : actions/setup-python@v2
20- with :
21- python-version : " 3.10"
22- architecture : x64
23- - name : Checkout
24- uses : actions/checkout@v2
25- - name : Install Dependencies
26- run : |
27- set -eux
2816
29- sudo apt-get install -y protobuf-compiler
17+ uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
18+ with :
19+ timeout : 120
20+ runner : ${{ matrix.runs-on }}
21+ gpu-arch-type : ${{ matrix.gpu-arch-type }}
22+ gpu-arch-version : ${{ matrix.gpu-arch-version }}
23+ script : |
24+ conda create -n venv python=3.10 -y
25+ conda activate venv
3026
31- pip install -e .[dev] -v
32- - name : Run Python Tests
33- run : |
34- set -eux
27+ yum install -y protobuf-compiler
3528
36- pytest -v
37- - name : Run Rust Lint
38- run : |
39- set -eux
29+ python -m pip install --upgrade pip
30+ pip install -e .[dev] -v
4031
41- cargo test -v
32+ pytest -v
33+ cargo test -v
4234
You can’t perform that action at this time.
0 commit comments