Skip to content

Fix div by zero error #166

Fix div by zero error

Fix div by zero error #166

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: [windows-latest, ubuntu-latest, macos-latest]
python-version: [3.7, 3.8, 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
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