File tree Expand file tree Collapse file tree 4 files changed +83
-39
lines changed
Expand file tree Collapse file tree 4 files changed +83
-39
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ name : OpenWISP Radius 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 }} | ${{ matrix.django-version }}
15+ runs-on : ubuntu-18.04
16+
17+ strategy :
18+ fail-fast : false
19+ matrix :
20+ python-version :
21+ - 3.6
22+ - 3.7
23+ django-version :
24+ - django~=2.2
25+ - django~=3.0
26+ - django~=3.1
27+
28+ steps :
29+ - uses : actions/checkout@v2
30+ with :
31+ ref : ${{ github.event.pull_request.head.sha }}
32+
33+ - name : Set up Python ${{ matrix.python-version }}
34+ uses : actions/setup-python@v2
35+ with :
36+ python-version : ${{ matrix.python-version }}
37+
38+ - name : Install python dependencies
39+ run : |
40+ pip install -U pip wheel
41+ pip install ${{ matrix.django-version }}
42+ pip install -U -r requirements-test.txt
43+
44+ - name : Install npm dependencies
45+ run : sudo npm install -g jslint
46+
47+ - name : Install openwisp-radius
48+ run : pip install -e .
49+
50+ - name : QA checks
51+ run : |
52+ ./run-qa-checks
53+
54+ - name : Tests
55+ run : |
56+ coverage run --source=openwisp_radius runtests.py
57+ # SAMPLE tests do not influence coverage, so we can speed up tests with --parallel
58+ SAMPLE_APP=1 ./runtests.py --parallel --keepdb
59+
60+ - name : Upload Coverage
61+ run : coveralls
62+ env :
63+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
64+ COVERALLS_FLAG_NAME : |
65+ python-${{ matrix.python-version }}-${{ matrix.django-version }}
66+ COVERALLS_PARALLEL : true
67+
68+ coveralls :
69+ name : Finish Coveralls
70+ needs : build
71+ runs-on : ubuntu-latest
72+ container : python:3-slim
73+ steps :
74+ - name : Finished
75+ run : |
76+ pip3 install --upgrade coveralls
77+ coveralls --finish
78+ env :
79+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11openwisp-radius
22===============
33
4- .. image :: https://travis-ci.org /openwisp/openwisp-radius.svg?branch=master
5- :target: https://travis-ci.org /openwisp/openwisp-radius
4+ .. image :: https://github.com /openwisp/openwisp-radius/workflows/OpenWISP%20Radius%20CI%20Build/badge .svg?branch=master
5+ :target: https://github.com /openwisp/openwisp-radius/actions?query=workflow%3A%22OpenWISP+Radius+CI+Build%22
66 :alt: CI build status
77
88.. image :: https://coveralls.io/repos/github/openwisp/openwisp-radius/badge.svg?branch=master
Original file line number Diff line number Diff line change 66echo ' Checking documentation build status'
77./runsphinx-build
88
9- if [[ $TRAVIS_PYTHON_VERSION != 3.6 ]]; then
9+ PYTHON_VERSION=$( python -c ' import sys; print(".".join(map(str, sys.version_info[:2])))' )
10+ if [[ $PYTHON_VERSION != 3.6 ]]; then
1011 # check for broken link
1112 # remove condition when 3.6 is dropped
1213 python -m http.server 8001 -d docs/build/html/ & > /dev/null &
You can’t perform that action at this time.
0 commit comments