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