-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 968 Bytes
/
ci.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
name: CI
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.12"]
env:
OS: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: x64
# - name: Install CUDA Toolkit
# uses: Jimver/[email protected]
# with:
# cuda: "12.4.0"
# linux-local-args: '["--toolkit"]'
- name: Install dependencies
run: |
pip install .[test]
# - name: Verify CUDA installation
# run: |
# nvcc --version
# python -c "import torch; print(torch.cuda.is_available())"
- name: Run tests and generate coverage report
run: |
pytest -v --cov=serapeum --cov-report=xml