-
Notifications
You must be signed in to change notification settings - Fork 60
46 lines (41 loc) · 1.05 KB
/
linux-cuda-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Linux CUDA tests
on:
push:
branches:
- main
paths:
- "optimum/quanto/**"
- "test/**"
- "pyproject.toml"
pull_request:
types: [assigned, opened, synchronize, reopened]
paths:
- "optimum/quanto/**"
- "test/**"
- "pyproject.toml"
jobs:
conventional-commits:
uses: ./.github/workflows/conventional-commits.yml
python-quality:
uses: ./.github/workflows/python-quality.yml
test-ubuntu-cuda:
needs: [conventional-commits, python-quality]
runs-on: [self-hosted, single-gpu , nvidia-gpu, a10, ci]
strategy:
fail-fast: false
matrix:
cuda-version: ["11.8", "12.1"]
container:
image: pytorch/pytorch:2.2.1-cuda${{ matrix.cuda-version }}-cudnn8-devel
steps:
- uses: actions/checkout@v2
- name: Check CUDA installation
run: |
nvcc -V
- name: Build and install quanto
run: |
pip install --upgrade pip
pip install .[dev]
- name: Run tests
run: |
python -m pytest test