]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
ci: do not run integration tests if there's no KVM
authorLuca Boccassi <luca.boccassi@gmail.com>
Sat, 5 Jul 2025 13:39:25 +0000 (14:39 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sat, 12 Jul 2025 09:25:36 +0000 (10:25 +0100)
Without KVM tests are too slow and timeout after an hour

.github/workflows/ci.yml

index 2e8b271aef3910912bbea2fd589615c00235de6e..28c1d53d1b3caba4940f4996093c3d0b866320c9 100644 (file)
@@ -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