-
Notifications
You must be signed in to change notification settings - Fork 75
54 lines (45 loc) · 1.41 KB
/
Copy pathTests.yml
File metadata and controls
54 lines (45 loc) · 1.41 KB
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
47
48
49
50
51
52
53
54
name: Tests
on:
push:
branches: main
pull_request:
branches: main
jobs:
tests:
name: ${{ matrix.extras }}${{ matrix.python-extras && format('+{0}', matrix.python-extras) || '' }} / py${{ matrix.python-version }}
strategy:
fail-fast: false
matrix:
include:
- python-version: "3.12"
extras: "test,lint"
- python-version: "3.14"
extras: "test,lint"
- python-version: "3.12"
extras: "test,lint,numpy"
- python-version: "3.12"
extras: "test,lint,numpy,dask"
- python-version: "3.13"
extras: "test,lint,numpy,dask,jax,sparse"
- python-version: "3.13"
extras: "test,lint,torch"
# - python-version: "3.12"
# extras: "test,lint"
# python-extras: "tensorflow"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
- name: Install
run: uv pip install -e ".[${{ matrix.extras }}]" ${{ matrix.python-extras }}
- name: Test
run: uv run --no-sync pytest -v --cov=opt_einsum/ --cov-report=xml
- name: Coverage
run: uv run --no-sync coverage report
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml