Skip to content

Commit 4c8a39e

Browse files
committed
add github actions
1 parent 9d14b2e commit 4c8a39e

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Python package
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
max-parallel: 4
11+
matrix:
12+
os: [ubuntu-latest, windows-latest]
13+
python-version: [3.6, 3.7]
14+
15+
steps:
16+
- uses: actions/checkout@v1
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v1
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip wheel
24+
pip install -r CI_REQUIREMENTS.txt
25+
pip install --upgrade pytest pytest-sugar pytest-cov
26+
- name: Build package and install develop
27+
run: |
28+
python setup.py develop -v
29+
- name: Test with pytest
30+
run: |
31+
py.test -vvv --cov-config .coveragerc --cov-report= --cov=advanced_descriptors test
32+
coverage report -m --fail-under 89

0 commit comments

Comments
 (0)