Skip to content

Commit 65f617b

Browse files
committed
Move test workflow to GitHub Actions
1 parent 5fab96c commit 65f617b

4 files changed

Lines changed: 41 additions & 5 deletions

File tree

.github/workflows/test.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Test IPMininet
2+
on: [ push, pull_request ]
3+
4+
jobs:
5+
install_and_run_test:
6+
name: Install and test IPMininet
7+
runs-on: ubuntu-20.04
8+
steps:
9+
- name: Checkout the event commit
10+
uses: actions/checkout@v2
11+
- name: Install IPMininet in dev mode
12+
run: |
13+
sudo pip install -e .
14+
sudo python -m ipmininet.install -a
15+
- name: Run tests
16+
run: |
17+
sudo pip install pytest pytest-cov
18+
sudo pytest --cov-config=.coveragerc --cov=ipmininet/ --cov-branch -v --cov-report term --cov-report lcov:lcov.info -v ipmininet
19+
- uses: romeovs/lcov-reporter-action@v0.2.16
20+
with:
21+
lcov-file: lcov.info
22+
- name: Run doc tests
23+
run: |
24+
cd docs
25+
pip install -r requirements.txt
26+
printf '' | sudo make doctest
27+
cat docs/_build/doctest/output.txt

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
# IPMininet
22
[![Pypi Version](https://img.shields.io/pypi/v/ipmininet.svg)](https://pypi.python.org/pypi/ipmininet/)
3-
[![Build Status](https://jenkins-mininet.info.ucl.ac.be/buildStatus/icon?job=ipmininet%2Fpythonversion%3Dipmininet-py37%2Ctestname%3Dunittest&subject=Python3.7)](https://jenkins-mininet.info.ucl.ac.be/job/ipmininet/pythonversion=ipmininet-py37,testname=unittest)
3+
[![Build Status](https://github.com/cnp3/ipmininet/actions/workflows/test/badge.svg)](https://github.com/cnp3/ipmininet/actions/workflows/test/badge.svg)
44
[![Documentation Status](https://readthedocs.org/projects/ipmininet/badge/?version=latest)](http://ipmininet.readthedocs.io/?badge=latest)
5-
[![Build Status](https://jenkins-mininet.info.ucl.ac.be/buildStatus/icon?job=ipmininet%2Fpythonversion%3Dipmininet-py37%2Ctestname%3Ddoctest&subject=doc%20examples)](https://jenkins-mininet.info.ucl.ac.be/job/ipmininet/pythonversion=ipmininet-py37,testname=doctest)
6-
[![Code Coverage](https://img.shields.io/jenkins/coverage/cobertura/https/jenkins-mininet.info.ucl.ac.be/job/ipmininet/pythonversion=ipmininet-py37,testname=unittest.svg)](https://jenkins-mininet.info.ucl.ac.be/job/ipmininet/pythonversion=ipmininet-py37,testname=unittest/cobertura)
75

86

97
This is a python library, extending [Mininet](http://mininet.org), in order
108
to support emulation of (complex) IP networks. As such it provides new classes,
11-
such as Routers, auto-configures all properties not set by the user, such as
9+
such as Routers, autoconfigures all properties not set by the user, such as
1210
IP addresses or router configuration files, ...
1311

1412
The latest user documentation is available on

ipmininet/.coveragerc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[run]
2+
omit =
3+
*/docs/*
4+
*/tests/*
5+
*/util/*
6+
*/install/*
7+
*/setup.py
8+
*/venv/*
9+
*/templates/*
10+
*_mako
11+
*/.eggs/*

ipmininet/install/build_openr-rc-20190419-11514.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -exo pipefail
44
### Install packages for Debian-based OS ###
55

6-
apt-get update && apt-get install -yq autoconf-archive bison build-essential cmake curl flex git gperf joe libboost-all-dev libcap-dev libdouble-conversion-dev libevent-dev libgflags-dev libgoogle-glog-dev libkrb5-dev libpcre3-dev libpthread-stubs0-dev libnuma-dev libsasl2-dev libsnappy-dev libsqlite3-dev libssl-dev libtool netcat-openbsd pkg-config sudo unzip wget python3-venv python-setuptools python3-setuptools python-pip python3-pip ccache
6+
apt-get update && apt-get install -yq autoconf-archive bison build-essential cmake curl flex git gperf joe libboost-all-dev libcap-dev libdouble-conversion-dev libevent-dev libgflags-dev libgoogle-glog-dev libkrb5-dev libpcre3-dev libpthread-stubs0-dev libnuma-dev libsasl2-dev libsnappy-dev libsqlite3-dev libssl-dev libtool netcat-openbsd pkg-config sudo unzip wget python3-venv python-setuptools python3-setuptools python3-pip ccache
77
apt-get install -yq gcc-'5' g++-'5'
88
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-'5' 40 --slave /usr/bin/g++ g++ /usr/bin/g++-'5'
99
update-alternatives --config gcc

0 commit comments

Comments
 (0)