Skip to content

minor

minor #201

Workflow file for this run

name: RT1_ubuntu
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# set operating systems to test
os: [ubuntu-latest]
# set python versions to test
python-version: ['3.7', '3.8', '3.9']
name: RT1_test ${{ matrix.os }} ${{ matrix.python-version }}
steps:
# checkout the repository
- uses: actions/checkout@v2
# install miniconda environment
- uses: conda-incubator/setup-miniconda@v2
with:
environment-file: tests/test_env.yml
activate-environment: test_rt1
show-channel-urls: true
use-only-tar-bz2: true
python-version: ${{ matrix.python-version }}
auto-activate-base: false
auto-update-conda: true
# run pytest
- name: test RT1
# do this to ensure proper activation of conda environment
shell: bash -l {0}
run: |
python -m pytest --cov=rt1 --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
env_vars: ${{ matrix.os }}, ${{ matrix.python-version }}
name: rt1_coverage
fail_ci_if_error: true
verbose: true