-
Notifications
You must be signed in to change notification settings - Fork 109
100 lines (84 loc) · 2.36 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: Tests
on:
workflow_dispatch:
push:
pull_request:
defaults:
run:
shell: bash -l {0}
jobs:
run-tests:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.flaky }}
strategy:
matrix:
testset: [matrix, tensor]
conda-env: [base]
os: [ubuntu-latest]
python-version: ['3.9', '3.10', '3.11', '3.12']
flaky: [false]
include:
- os: macos-latest
testset: matrix
conda-env: base
python-version: '3.11'
flaky: true
- os: macos-latest
testset: tensor
conda-env: base
python-version: '3.11'
flaky: false
- os: windows-latest
testset: matrix
conda-env: openblas
python-version: '3.11'
flaky: false
env:
KMP_DUPLICATE_LIB_OK: "True"
- os: windows-latest
testset: tensor
conda-env: openblas
python-version: '3.11'
flaky: false
env:
KMP_DUPLICATE_LIB_OK: "True"
- conda-env: torch
testset: tensor
os: ubuntu-latest
python-version: '3.11'
flaky: false
- conda-env: jax
testset: tensor
os: ubuntu-latest
python-version: '3.11'
flaky: false
- conda-env: tensorflow
testset: tensor
os: ubuntu-latest
python-version: '3.11'
flaky: false
- conda-env: slepc
testset: matrix
os: ubuntu-latest
python-version: '3.11'
flaky: false
steps:
- uses: actions/checkout@v4
- name: Install micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: ci/requirements/py-${{ matrix.conda-env }}.yml
environment-name: test-env
create-args: >-
python=${{ matrix.python-version }}
cache-environment: true
- name: Matrix submodule tests with pytest
if: ${{ matrix.testset == 'matrix' }}
run: pytest tests/ --cov=quimb --cov-report=xml --ignore=tests/test_tensor
- name: Tensor tests with pytest
if: ${{ matrix.testset == 'tensor' }}
run: pytest tests/test_tensor --cov=quimb --cov-report=xml
- name: Report to codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}