-
Notifications
You must be signed in to change notification settings - Fork 108
41 lines (38 loc) · 1.11 KB
/
test-py6s.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
name: Test Py6S
on:
push:
branches:
- master
pull_request:
jobs:
test-py6s:
name: Test Py6S
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.7', '3.8', '3.9', '3.10']
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
channels: conda-forge
activate-environment: py6s-test
miniconda-version: "latest"
- name: Install conda dependencies
shell: bash -l {0}
run: |
conda install sixs pysolar numpy scipy pandas matplotlib pytest pytest-cov python-coveralls coverage
- name: Install Py6S
shell: bash -l {0}
run: python setup.py install
- name: Run tests
shell: bash -l {0}
run: python -m pytest -v --cov-report=xml --cov=Py6S tests/
- name: Get coverage report
shell: bash -l {0}
run: coverage report
- uses: codecov/codecov-action@v1
with:
file: ./coverage.xml