-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move test workflow to GitHub Actions
- Loading branch information
Showing
4 changed files
with
41 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Test IPMininet | ||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
install_and_run_test: | ||
name: Install and test IPMininet | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout the event commit | ||
uses: actions/checkout@v2 | ||
- name: Install IPMininet in dev mode | ||
run: | | ||
sudo pip install -e . | ||
sudo python -m ipmininet.install -a | ||
- name: Run tests | ||
run: | | ||
sudo pip install pytest pytest-cov | ||
sudo pytest --cov-config=.coveragerc --cov=ipmininet/ --cov-branch -v --cov-report term --cov-report lcov:lcov.info -v ipmininet | ||
- uses: romeovs/[email protected] | ||
with: | ||
lcov-file: lcov.info | ||
- name: Run doc tests | ||
run: | | ||
cd docs | ||
pip install -r requirements.txt | ||
printf '' | sudo make doctest | ||
cat docs/_build/doctest/output.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[run] | ||
omit = | ||
*/docs/* | ||
*/tests/* | ||
*/util/* | ||
*/install/* | ||
*/setup.py | ||
*/venv/* | ||
*/templates/* | ||
*_mako | ||
*/.eggs/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters