Skip to content

CI: install qemu-utils for qemu-img on Linux #4

CI: install qemu-utils for qemu-img on Linux

CI: install qemu-utils for qemu-img on Linux #4

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
schedule:
- cron: "0 6 * * 1" # Weekly Monday 6am UTC — catches upstream Debian image drift
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
run: |
curl -fL https://github.com/astral-sh/uv/releases/latest/download/uv-x86_64-unknown-linux-gnu.tar.gz \
| tar xz -C /usr/local/bin --strip-components=1
- run: uv run pytest tests/test_filter.py -v
e2e-linux:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- name: Install uv
run: |
curl -fL https://github.com/astral-sh/uv/releases/latest/download/uv-x86_64-unknown-linux-gnu.tar.gz \
| tar xz -C /usr/local/bin --strip-components=1
- name: Install QEMU and dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -y --no-install-recommends \
qemu-system-x86 qemu-utils genisoimage netcat-openbsd
- name: Install mitmproxy
run: uv tool install mitmproxy
- name: Run e2e tests
run: uv run pytest tests/test_e2e.py -v -s
env:
VM_STATE_DIR: ${{ runner.temp }}/vm-state
- name: Upload logs on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: e2e-linux-logs
path: |
${{ runner.temp }}/vm-state/console.log
${{ runner.temp }}/vm-state/mitmdump.log
e2e-macos:
runs-on: macos-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: Install uv
run: |
curl -fL https://github.com/astral-sh/uv/releases/latest/download/uv-aarch64-apple-darwin.tar.gz \
| tar xz -C /usr/local/bin --strip-components=1
- name: Install QEMU and mitmproxy
run: brew install qemu mitmproxy
- name: Run e2e tests
run: uv run pytest tests/test_e2e.py -v -s
env:
VM_STATE_DIR: ${{ runner.temp }}/vm-state
- name: Upload logs on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: e2e-macos-logs
path: |
${{ runner.temp }}/vm-state/console.log
${{ runner.temp }}/vm-state/mitmdump.log