Skip to content

Add moments test

Add moments test #124

Workflow file for this run

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"]
python-version: ["3.8", "3.9", "3.10"]
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Setup conda environment
uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
python-version: ${{ matrix.python-version }}
environment-file: ci/environment-${{ matrix.python-version }}.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