Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: "3.10"
architecture: x64
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install Dependencies
run: |
set -eux
Expand Down
46 changes: 21 additions & 25 deletions .github/workflows/unittest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,29 @@ jobs:
unittest:
strategy:
matrix:
os:
- ubuntu-20.04
- "linux.4xlarge.nvidia.gpu"
runs-on: ${{ matrix.os }}
steps:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
architecture: x64
- name: Checkout
uses: actions/checkout@v2
- name: Install Dependencies
run: |
set -eux
include:
- runs-on: "linux.2xlarge"
gpu-arch-type: "cpu"
gpu-arch-version: ""
- runs-on: "linux.4xlarge.nvidia.gpu"
gpu-arch-type: "cuda"
gpu-arch-version: "12.1"

sudo apt-get install -y protobuf-compiler
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
with:
timeout: 120
runner: ${{ matrix.runs-on }}
gpu-arch-type: ${{ matrix.gpu-arch-type }}
gpu-arch-version: ${{ matrix.gpu-arch-version }}
script: |
conda create -n venv python=3.10 protobuf -y
conda activate venv

pip install -e .[dev] -v
- name: Run Python Tests
run: |
set -eux
yum install -y rust cargo

pytest -v
- name: Run Rust Lint
run: |
set -eux
python -m pip install --upgrade pip
pip install -e .[dev] -v

cargo test -v
pytest -v
cargo test -v

Loading