Skip to content

requirements(deps): bump urllib3 from 2.5.0 to 2.6.0 #2189

requirements(deps): bump urllib3 from 2.5.0 to 2.6.0

requirements(deps): bump urllib3 from 2.5.0 to 2.6.0 #2189

name: Smoke test creation of Ubuntu OpenStack images
on:
pull_request:
push:
schedule:
- cron: '0 16 * * 5' # Every Friday 4pm
jobs:
install_and_run:
name: Smoke test creation of Ubuntu OpenStack images
runs-on: ubuntu-22.04
steps:
- name: Checkout Git repository
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- name: Cache pip
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Set up Python 3.14
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
with:
python-version: 3.14
- name: Install
run: |-
sudo pip3 install \
--disable-pip-version-check \
.
- name: Install runtime dependencies
run: |-
sudo apt-get update
sudo apt-get install --no-install-recommends --yes \
debootstrap \
extlinux \
kpartx \
mbr \
qemu-utils \
ubuntu-keyring
- name: Smoke test creation of Ubuntu OpenStack images
run: |-
cd /tmp # to not be in Git clone folder
image-bootstrap --help ; echo
image-bootstrap ubuntu --help ; echo
truncate --size 3g /tmp/disk
LOOP_DEV="$(sudo losetup --show --find -f /tmp/disk | tee /dev/stderr)"
echo "LOOP_DEV=${LOOP_DEV}" >> "${GITHUB_ENV}"
sudo PYTHONUNBUFFERED=1 image-bootstrap --verbose --debug --openstack ubuntu ${LOOP_DEV}
- name: Create .qcow2 image from loop device
run: |-
set -eux
git fetch --force --tags --unshallow origin # for "git describe"
img_base_name="ubuntu-openstack-$(date '+%Y-%m-%d-%H-%M')-image-bootstrap-$(git describe --tags).qcow2"
sudo qemu-img convert -f raw -O qcow2 "${LOOP_DEV}" "${img_base_name}"
ls -lh "${img_base_name}"
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
name: ubuntu-openstack-qcow2
path: '*.qcow2'
if-no-files-found: error