Merge pull request #61 from stellema/master #192
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: tests | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["ubuntu-latest", "windows-latest", "macos-latest"] | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v2 | |
- name: Setup conda environment | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
miniconda-version: "latest" | |
environment-file: ci/environment.yml | |
activate-environment: unseen-test | |
auto-activate-base: false | |
- name: Install | |
shell: bash -l {0} | |
run: python -m pip install -e . | |
- name: List installed packages | |
shell: bash -l {0} | |
run: conda list | |
- name: Run tests | |
shell: bash -l {0} | |
run: python -m pytest unseen | |
- name: Upload code coverage | |
uses: codecov/codecov-action@v1 | |
with: | |
file: ./coverage.xml |