mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-27 06:56:29 +00:00
Enable KVM for running tests in GH Actions (#3329)
It was not possible on free runners previously, but it should be now: https://github.com/actions/runner-images/discussions/7191#discussioncomment-9018826
This commit is contained in:
parent
21fd9e64c8
commit
4e44b101f3
9
.github/workflows/test.yaml
vendored
9
.github/workflows/test.yaml
vendored
@ -28,9 +28,6 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
|
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
|
||||||
|
|
||||||
env:
|
|
||||||
NO_KVM: 1
|
|
||||||
|
|
||||||
name: Test in QEMU
|
name: Test in QEMU
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
@ -69,6 +66,12 @@ jobs:
|
|||||||
xz -dc haos*.qcow2.xz > tests/haos.qcow2
|
xz -dc haos*.qcow2.xz > tests/haos.qcow2
|
||||||
rm haos*.qcow2.xz
|
rm haos*.qcow2.xz
|
||||||
|
|
||||||
|
- name: Enable KVM group perms
|
||||||
|
run: |
|
||||||
|
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
|
||||||
|
sudo udevadm control --reload-rules
|
||||||
|
sudo udevadm trigger --name-match=kvm
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
./tests/run_tests.sh
|
./tests/run_tests.sh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user