Skip to content

Fix div by zero error #164

Fix div by zero error

Fix div by zero error #164

Workflow file for this run

name: Upstream
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
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: xhistogram_test_env
auto-activate-base: false
- name: Install upstream packages
shell: bash -l {0}
run: |
python -m pip install git+https://github.com/dask/dask.git
python -m pip install git+https://github.com/pydata/xarray.git
- 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 --cov=xhistogram --cov-report=xml xhistogram
- name: Coverage
uses: codecov/codecov-action@v1