Skip to content

Tests and coverage #1566

Tests and coverage

Tests and coverage #1566

Workflow file for this run

name: Tests and coverage
on:
schedule:
- cron: "0 16 * * *" # Daily at noon EST
pull_request:
jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
os: [ubuntu-latest] #, macos-latest, windows-latest] # Mac and Windows take a ridiculously long time to run tests
steps:
- uses: actions/checkout@master
- name: Setup Python
uses: actions/setup-python@master
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: python -m pip install --upgrade pip
- name: Install nwbwidgets
run: pip install -e .[full]
- name: Generate coverage report
run: |
pip install pytest
pip install pytest-cov
pytest --cov=./nwbwidgets/ --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: unittests
name: codecov-umbrella
yml: ./codecov.yml