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 b796c6a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 27 deletions.
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 -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 b796c6a

Please sign in to comment.