-
Notifications
You must be signed in to change notification settings - Fork 6
39 lines (34 loc) · 966 Bytes
/
coverage.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
name: coverage
on:
push:
branches: [ develop , main]
paths:
- src/python/**
pull_request:
branches: [ develop , main]
paths:
- src/python/**
jobs:
report:
runs-on: Ubuntu-20.04
strategy:
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install packages
run: |
pip install pip==21.3.1 wheel==0.37.1 setuptools==60.1.0
pip install -r src/python/requirements.txt
pip install pytest==6.2.4 pytest-cov==3.0.0 igraph==0.10.4
pip install ./src/python/
pip list
- name: Test VIMuRe
run: |
pytest --cov=vimure --cov-report=xml --doctest-modules --pyargs vimure
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v2