🏃 Migrate CI to self-hosted runners #4
Workflow file for this run
This file contains hidden or 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: Env | |
on: | |
pull_request: | |
jobs: | |
tests: | |
name: Env | |
strategy: | |
matrix: | |
python-version: ['3.9', '3.10', '3.11', '3.12'] | |
fail-fast: false | |
runs-on: | |
group: aws-g4dn-2xlarge | |
container: | |
image: pytorch/pytorch:2.6.0-cuda12.6-cudnn9-devel | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
pip install torch | |
- name: Test with pytest | |
run: | | |
python -c "import torch; print(torch.cuda.get_device_name(0))" |