-
Notifications
You must be signed in to change notification settings - Fork 21
40 lines (36 loc) · 1.08 KB
/
workflow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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