ci: switch to amazon runners #17
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit Tests | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
jobs: | ||
unittest: | ||
strategy: | ||
matrix: | ||
os: | ||
- "linux.2xlarge" | ||
- "linux.4xlarge.nvidia.gpu" | ||
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 | ||
yum install -y protobuf-compiler | ||
python -m pip install --upgrade pip | ||
pip install -e .[dev] -v | ||
pytest -v | ||
cargo test -v | ||