forked from catalystneuro/IBL-to-nwb
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (35 loc) · 954 Bytes
/
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
name: Example workflow for Codecov
on: [push]
jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@master
- name: Setup Python
uses: actions/setup-python@master
with:
python-version: 3.8
- name: Install dependencies
run: |
conda update conda
pip install -r requirements.txt
- name: Install extension
run: |
pip install -e .
- name: Generate coverage report
run: |
# Temporarily disabling tests and coverage of older project
# pip install pytest
# pip install pytest-cov
# pytest --cov=./ --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