-
Notifications
You must be signed in to change notification settings - Fork 2
55 lines (49 loc) · 1.44 KB
/
testsuite.yaml
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
name: Tests
on: [push, pull_request]
jobs:
tests:
env:
ENV_NAME: tests
PYTHON: ${{ matrix.python-version }}
OS: ${{ matrix.os }}
defaults:
run:
# Adding -l {0} helps ensure conda can be found properly in windows.
shell: bash -l {0}
name: Testing
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: [3.6, 3.7, 3.8]
kind: [tests, mindeps]
steps:
- uses: actions/checkout@master
with:
fetch-depth: 1
- name: Setup Miniconda
uses: conda-incubator/[email protected]
with:
auto-update-conda: true
miniconda-version: "latest"
python-version: ${{ matrix.python-version }}
environment-file: ci/${{ matrix.kind }}.yaml
activate-environment: ${{ matrix.kind }}
- name: Conda Info
run: |
conda info -a
conda list
PYVER=`python -c "import sys; print('{:d}.{:d}'.format(sys.version_info.major, sys.version_info.minor))"`
echo $PYVER
- name: Install
run: |
python -m pip install .
- name: Run Tests
run: |
python -m pytest
- uses: codecov/codecov-action@master
if: matrix.os == 'ubuntu-latest' && success()
with:
token: ${{secrets.CODECOV_TOKEN}} #required
file: ./coverage.xml #optional