-
Notifications
You must be signed in to change notification settings - Fork 6
44 lines (44 loc) · 1.17 KB
/
CI.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
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- '3.7'
- '3.8'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Pip Install
run: >
pip install -e . &&
pip install pyopenssl[security] &&
pip install -r canine/test/requirements.txt &&
pip install coveralls
- name: Run Tests
run: >
coverage run --source=canine
--omit='canine/backends/dummy/controller.py,*canine/test/*.py,canine/localization/delocalization.py,canine/__main__.py,canine/xargs.py'
-m unittest discover canine/test
- name: Submit Coverage
run: >
CI_BRANCH=${GITHUB_REF#"ref/heads"} coveralls
finish:
needs: build
runs-on: ubuntu-latest
steps:
- name: Complete Coveralls
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true