Add ubuntu 22.04 to CI workflow (#1169)

- run-tests: test ubuntu 22.04 with python 3.x
- install.sh: add cgroupfs-mount to dependencies
This commit is contained in:
lantz
2023-04-22 20:08:37 -07:00
committed by GitHub
parent b762d0bf96
commit 4cfe97ee49
2 changed files with 9 additions and 3 deletions
+7 -2
View File
@@ -9,8 +9,13 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
os: [ubuntu-20.04] include:
python-version: [3.x, 2.x] - os: ubuntu-22.04
python-version: 3.x
- os: ubuntu-20.04
python-version: 3.x
- os: ubuntu-20.04
python-version: 2.x
steps: steps:
- name: Check out Mininet source - name: Check out Mininet source
uses: actions/checkout@v2 uses: actions/checkout@v2
+2 -1
View File
@@ -180,7 +180,7 @@ function mn_deps {
if [ "$DIST" = "Ubuntu" -a `expr $RELEASE '>=' 20.04` = "1" ]; then if [ "$DIST" = "Ubuntu" -a `expr $RELEASE '>=' 20.04` = "1" ]; then
pf=pyflakes3 pf=pyflakes3
fi fi
# Debian 11 "bullseye" renamed # Debian 11 "bullseye" renamed
# * pep8 to python3-pep8 # * pep8 to python3-pep8
# * pyflakes to pyflakes3 # * pyflakes to pyflakes3
if [ "$DIST" = "Debian" -a `expr $RELEASE '>=' 11` = "1" ]; then if [ "$DIST" = "Debian" -a `expr $RELEASE '>=' 11` = "1" ]; then
@@ -205,6 +205,7 @@ function mn_deps {
fi fi
$install iproute2 || $install iproute $install iproute2 || $install iproute
$install cgroup-tools || $install cgroup-bin $install cgroup-tools || $install cgroup-bin
$install cgroupfs-mount
fi fi
echo "Installing Mininet core" echo "Installing Mininet core"