Skip to content

🏃 Migrate CI to self-hosted runners #4

🏃 Migrate CI to self-hosted runners

🏃 Migrate CI to self-hosted runners #4

Workflow file for this run

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))"