merge for v0.5 #122
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test_rt1 | |
on: | |
pull_request: | |
# to trigger workflow manually from actions-tab | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
# set operating systems to test | |
os: [ubuntu-latest] | |
# set python versions to test | |
python-version: ["3.9", "3.10", "3.11"] | |
name: setup_rt1 ${{ matrix.os }} ${{ matrix.python-version }} | |
steps: | |
# checkout repository | |
- uses: actions/checkout@v3 | |
# install miniconda environment | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
environment-file: tests/test_env.yml | |
miniforge-variant: Mambaforge | |
miniforge-version: latest | |
activate-environment: 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: | | |
pip install -e . | |
python -m pytest -v --cov=./ --cov-report=xml | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
env_vars: ${{ matrix.os }}, ${{ matrix.python-version }} | |
name: maps_coverage | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: true | |
verbose: true |