File tree Expand file tree Collapse file tree 3 files changed +69
-33
lines changed
Expand file tree Collapse file tree 3 files changed +69
-33
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ name : Netjsonconfig CI Build
3+
4+ on :
5+ push :
6+ branches :
7+ - master
8+ pull_request :
9+ branches :
10+ - master
11+
12+ jobs :
13+ build :
14+ name : Python==${{ matrix.python-version }}
15+ runs-on : ubuntu-20.04
16+
17+ strategy :
18+ fail-fast : false
19+ matrix :
20+ python-version :
21+ - 3.6
22+ - 3.7
23+
24+ steps :
25+ - uses : actions/checkout@v2
26+ with :
27+ ref : ${{ github.event.pull_request.head.sha }}
28+
29+ - name : Set up Python ${{ matrix.python-version }}
30+ uses : actions/setup-python@v2
31+ with :
32+ python-version : ${{ matrix.python-version }}
33+
34+ - name : Install python dependencies
35+ run : |
36+ pip install -U "pip==20.2.4" wheel setuptools
37+ pip install -U -r requirements-test.txt
38+
39+ - name : Install netjsonconfig
40+ run : python setup.py -q develop
41+
42+ - name : QA checks
43+ run : ./run-qa-checks
44+
45+ - name : Tests
46+ run : coverage run -a --source=netjsonconfig runtests.py
47+
48+ - name : Upload Coverage
49+ run : coveralls --service=github
50+ env :
51+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
52+ COVERALLS_FLAG_NAME : |
53+ python-${{ matrix.env.env }}
54+ COVERALLS_PARALLEL : true
55+
56+ coveralls :
57+ name : Finish Coveralls
58+ needs : build
59+ runs-on : ubuntu-latest
60+ container : python:3-slim
61+ steps :
62+ - name : Finished
63+ run : |
64+ pip3 install --upgrade coveralls
65+ coveralls --finish
66+ env :
67+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11netjsonconfig
22=============
33
4- .. image :: https://travis-ci.org /openwisp/netjsonconfig.svg
5- :target: https://travis-ci.org /openwisp/netjsonconfig
4+ .. image :: https://github.com /openwisp/netjsonconfig/workflows/Netjsonconfig%20CI%20Build/badge .svg?branch=master
5+ :target: https://github.com /openwisp/netjsonconfig/actions?query=workflow%3A%22Netjsonconfig+CI+Build%22
66
77.. image :: https://coveralls.io/repos/openwisp/netjsonconfig/badge.svg
88 :target: https://coveralls.io/r/openwisp/netjsonconfig
You can’t perform that action at this time.
0 commit comments