-
Notifications
You must be signed in to change notification settings - Fork 6
53 lines (51 loc) · 1.38 KB
/
main.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
41
42
43
44
45
46
47
48
49
50
51
52
53
name: CI
on:
push:
branches:
- develop
pull_request:
branches:
- develop
- master
jobs:
python-ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.8", "3.9"]
os: [ubuntu-latest, macOS-latest, windows-latest]
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python-version }}
name: CI workflow
steps:
- name: checkout source repo
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: "Installs dependencies"
run: |
# Upgrade pip
python3 -m pip install --upgrade pip
# Install build deps
pip install setuptools pytest pytest-cov flake8 ipython
# Install the package from setup.py
pip install .
- name: linting flake8
run: |
flake8
- name: Generate coverage report
run: |
pytest --cov=./pyEvalData --cov-report=xml test/
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
env_vars: OS, PYTHON
fail_ci_if_error: true
file: ./coverage.xml
flags: unittests
name: codecov-umbrella
verbose: false