new script for new topology crosslayer #863
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
name: tests | |
on: [push, pull_request] | |
jobs: | |
test: | |
name: Mininet-Optical Tests | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: apt update | |
run: sudo apt update | |
- name: Set up Python 3.x | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.x | |
- name: Check out source code | |
uses: actions/checkout@v2 | |
- name: Workaround for broken actions crypto package | |
run: | | |
pip3 install --upgrade pyOpenSSL | |
sudo pip3 install --upgrade pyOpenSSL | |
- name: Install Mininet-Optical dependencies (besides Mininet) | |
run: make depend | |
- name: Build and install Mininet-Optical | |
run: | | |
make install | |
pip3 show -f mininet-optical | grep examples | |
# We pass empty PYTHONPATH in order to test the installed packages | |
- name: Run Simulation Tests | |
run: PYTHONPATH= make simtest | |
- name: Run Cross-validation Tests | |
run: PYTHONPATH= make crossvalsanity | |
- name: Install Mininet (master) | |
run: | | |
git clone https://github.com/mininet/mininet | |
mininet/util/install.sh -nv | |
- name: Run Emulation Tests | |
run: PYTHONPATH= make emutest | |
- name: Run OFC Demo Tests | |
run: PYTHONPATH= make demotest |