pre-commit: autoupdate hooks #4955
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Keywords self-tests with QEMU | |
on: [push, pull_request] | |
jobs: | |
qemu: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository and submodules | |
uses: actions/checkout@v2 | |
with: | |
submodules: 'recursive' | |
- name: Set up QEMU | |
run: | | |
sudo apt-get update | |
sudo apt-get install qemu-system-x86-64 swtpm | |
# Based on: https://github.blog/changelog/2023-02-23-hardware-accelerated-android-virtualization-on-actions-windows-and-linux-larger-hosted-runners/ | |
# It mentiones enteprise large-runners, let's see if it works | |
# on regular public runners as well | |
- 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: Start QEMU in background | |
run: | | |
./scripts/ci/qemu-run.sh nographic firmware & | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Start keywords self-tests with QEMU | |
run: | | |
./scripts/ci/qemu-self-test.sh | |
- name: Save artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "qemu-logs" | |
path: | | |
./logs/ | |
retention-days: 30 |