-
Notifications
You must be signed in to change notification settings - Fork 69
63 lines (53 loc) · 1.42 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
name: Tests
on:
push:
branches: master
pull_request:
branches: master
jobs:
miniconda-setup:
name: Env (${{ matrix.environment }}) - Py${{ matrix.python-version }}
strategy:
fail-fast: false
matrix:
python-version: [3.6, 3.7]
environment: ["min-deps", "full", "min-ver"]
exclude:
- python-version: 3.6
environment: "full"
include:
- python-version: 3.9
environment: "min-deps"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
mamba-version: "*"
channel-priority: true
activate-environment: test
environment-file: devtools/conda-envs/${{ matrix.environment }}-environment.yaml
- name: Environment Information
shell: bash -l {0}
run: |
conda info
conda list
conda config --show-sources
conda config --show
- name: Install
shell: bash -l {0}
run: |
python -m pip install . --no-deps
- name: Test
shell: bash -l {0}
run: |
pytest -v --cov=opt_einsum opt_einsum/ --cov-report=xml
- name: Coverage
shell: bash -l {0}
run: |
coverage report
- uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml