Skip to content

Update test-py6s-conda-install-scheduled.yml #86

Update test-py6s-conda-install-scheduled.yml

Update test-py6s-conda-install-scheduled.yml #86

Workflow file for this run

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
- 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