From: Luca Boccassi Date: Sat, 5 Jul 2025 13:39:25 +0000 (+0100) Subject: ci: do not run integration tests if there's no KVM X-Git-Tag: v26~182^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6973d4a1435ecfa28cb748510b3a98f4f0cd65a0;p=thirdparty%2Fmkosi.git ci: do not run integration tests if there's no KVM Without KVM tests are too slow and timeout after an hour --- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2e8b271ae..28c1d53d1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -219,12 +219,15 @@ jobs: - name: Run integration tests run: | - sudo mkosi box -- \ - timeout -k 30 1h \ - python3 -m pytest \ - --tb=no \ - --capture=no \ - --verbose \ - -m integration \ - --distribution ${{ matrix.distro }} \ - tests/ + # Without KVM the tests are way too slow and time out + if [[ -e /dev/kvm ]]; then + sudo mkosi box -- \ + timeout -k 30 1h \ + python3 -m pytest \ + --tb=no \ + --capture=no \ + --verbose \ + -m integration \ + --distribution ${{ matrix.distro }} \ + tests/ + fi