Skip to content

feat!: use uv and uv.lock for reproducible builds in Docker image #1035

feat!: use uv and uv.lock for reproducible builds in Docker image

feat!: use uv and uv.lock for reproducible builds in Docker image #1035

name: Run unit tests on Docker container
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
permissions:
contents: read
jobs:
run-unit-tests:
runs-on: ubuntu-24.04-20260213
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false # do not keep the token around
- name: Generate the .env file and the SECRET_KEY
run: make envfile
- name: Build and run the Docker Compose stack
run: docker compose up -d
- name: Debug libguestfs capabilities
run: |
docker compose run web sh -c "ls -la /dev/fuse /dev/kvm 2>&1 || true"
docker compose run web sh -c "libguestfs-test-tool 2>&1 | tail -20 || true"
- name: Run tests
run: docker compose run -e FROM_DOCKER_IMAGE=1 web python ./manage.py test --verbosity=2 --noinput