Skip to content

requirements(deps): bump importlib-metadata from 7.0.2 to 7.1.0 #1454

requirements(deps): bump importlib-metadata from 7.0.2 to 7.1.0

requirements(deps): bump importlib-metadata from 7.0.2 to 7.1.0 #1454

name: Smoke test creation of Arch OpenStack images
on:
pull_request:
push:
schedule:
- cron: '0 16 * * 5' # Every Friday 4pm
jobs:
install_and_run:
name: Smoke test creation of Arch OpenStack images
runs-on: ubuntu-22.04
steps:
- name: Checkout Git repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Cache pip
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Set up Python 3.8
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: 3.8
- 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 \
kpartx \
qemu-utils
- name: Smoke test creation of Arch OpenStack images
run: |-
cd /tmp # to not be in Git clone folder
image-bootstrap --help ; echo
image-bootstrap arch --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 arch ${LOOP_DEV}
- name: Create .qcow2 image from loop device
run: |-
set -eux
git fetch --force --tags --unshallow origin # for "git describe"
img_base_name="arch-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@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: arch-openstack-qcow2
path: '*.qcow2'
if-no-files-found: error