Skip to content

Commit

Permalink
ci: switch to amazon runners
Browse files Browse the repository at this point in the history
  • Loading branch information
d4l3k committed Oct 31, 2024
1 parent 0744e23 commit 8cf518f
Showing 1 changed file with 21 additions and 25 deletions.
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: "cuda"
gpu-arch-version: "12.1"
- runs-on: "linux.4xlarge.nvidia.gpu"
gpu-arch-type: "cpu"
gpu-arch-version: ""

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 -y
conda activate venv
pip install -e .[dev] -v
- name: Run Python Tests
run: |
set -eux
yum install -y protobuf-compiler
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

0 comments on commit 8cf518f

Please sign in to comment.