summaryrefslogtreecommitdiff
path: root/.github/workflows/run-tests.yml
diff options
context:
space:
mode:
authorSergey V. Lobanov <sergey@lobanov.in>2024-05-25 01:59:37 +0200
committerSergey V. Lobanov <sergey@lobanov.in>2024-05-25 16:33:39 +0200
commitbf00b2eb73e8411360292337fa2f889b38788acb (patch)
tree567b3a8e8379d196554593c322e534311a6621ff /.github/workflows/run-tests.yml
parent61fe62707c3eee66d9c228f7e0f2126575b83692 (diff)
downloadaccel-ppp-bf00b2eb73e8411360292337fa2f889b38788acb.tar.gz
accel-ppp-bf00b2eb73e8411360292337fa2f889b38788acb.zip
ci: use ubuntu 24.04 as default runner in github
Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
Diffstat (limited to '.github/workflows/run-tests.yml')
-rw-r--r--.github/workflows/run-tests.yml26
1 files changed, 14 insertions, 12 deletions
diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml
index 95173b25..303dfd0a 100644
--- a/.github/workflows/run-tests.yml
+++ b/.github/workflows/run-tests.yml
@@ -10,7 +10,7 @@ on:
jobs:
Test-in-Qemu:
#if: ${{ false }} # disable for now
- runs-on: ubuntu-latest
+ runs-on: ubuntu-24.04
name: Test in Qemu (${{ matrix.distro }})
strategy:
fail-fast: false
@@ -53,14 +53,14 @@ jobs:
steps:
- name: Check out repository code
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
with:
fetch-depth: 0
path: "accel-ppp"
- name: Install qemu and required tools
run: >
sudo apt update &&
- sudo apt -y install qemu-system-x86 qemu-utils cloud-image-utils cpu-checker cloud-image-utils wget openssh-client screen
+ NEEDRESTART_SUSPEND=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true sudo -E apt -y install qemu-system-x86 qemu-utils cloud-image-utils cpu-checker cloud-image-utils wget openssh-client screen
- name: Check kvm support (fail is ok)
run: sudo kvm-ok || exit 0
- name: Prepare cloud-init image disk
@@ -193,23 +193,24 @@ jobs:
strategy:
fail-fast: false
matrix:
- distro: ["ubuntu-22.04", "ubuntu-20.04"]
+ distro: ["ubuntu-24.04", "ubuntu-22.04", "ubuntu-20.04"]
runs-on: ${{ matrix.distro }}
steps:
- name: Install build tools (using apt)
run: >
sudo apt update &&
- sudo apt -y install git build-essential cmake gcc linux-headers-`uname -r`
+ NEEDRESTART_SUSPEND=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true sudo -E apt -y install
+ git build-essential cmake gcc linux-headers-`uname -r`
libpcre3-dev libssl-dev liblua5.1-0-dev kmod python3-pip
iproute2 ppp pppoe isc-dhcp-client
- name: Install testing tools (using pip)
run: >
- sudo pip3 install pytest pytest-dependency
+ sudo pip3 install pytest pytest-dependency || sudo pip3 install --break-system-packages pytest pytest-dependency
- name: Check out repository code
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
with:
fetch-depth: 0
@@ -245,23 +246,24 @@ jobs:
strategy:
fail-fast: false
matrix:
- distro: ["ubuntu-22.04", "ubuntu-20.04"]
+ distro: ["ubuntu-24.04", "ubuntu-22.04", "ubuntu-20.04"]
runs-on: ${{ matrix.distro }}
steps:
- name: Install build tools (using apt)
run: >
sudo apt update &&
- sudo apt -y install git build-essential cmake gcc linux-headers-`uname -r`
+ NEEDRESTART_SUSPEND=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true sudo -E apt -y install
+ git build-essential cmake gcc linux-headers-`uname -r`
libpcre3-dev libssl-dev liblua5.1-0-dev kmod python3-pip
iproute2 ppp pppoe isc-dhcp-client
- name: Install testing tools (using pip)
run: >
- sudo pip3 install pytest pytest-dependency gcovr
+ sudo pip3 install pytest pytest-dependency gcovr || sudo pip3 install --break-system-packages pytest pytest-dependency gcovr
- name: Check out repository code
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
with:
fetch-depth: 0
@@ -305,7 +307,7 @@ jobs:
- name: Upload coverage report
# if: ${{ false }}
- uses: actions/upload-artifact@v3
+ uses: actions/upload-artifact@v4
with:
name: coverage-report-on-${{ matrix.distro }}
path: tests/report/