Skip to content

docs/release-notes: update for release 5.10.0 #55

docs/release-notes: update for release 5.10.0

docs/release-notes: update for release 5.10.0 #55

Workflow file for this run

name: TMT Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
inputs:
plan_filter:
description: |
Test plan filter name, ie: tag:smoke.
If provided, only tests matching this filter will be run, otherwise all tests will be run.
required: false
default: ''
use_built_from_src:
description: 'Build afterburn from source instead of install distro package'
required: false
default: 'true'
jobs:
tmt-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Install dependencies
run: |
set -x -e -o pipefail
sudo apt-get update
sudo apt-get install -y podman libblkid-dev rsync
pip install --user tmt
- name: Build afterburn
if: github.event.inputs.use_built_from_src == '' || github.event.inputs.use_built_from_src == 'true'
run: |
set -x -e -o pipefail
# Adjust this build command as needed for afterburn
cargo build --release
- name: Run TMT tests
run: |
set -x -e -o pipefail
if [ "$ACT" = "true" ]; then
echo "Running locally using ACT"
TMT_PROVISION_OPTS="--how local --feeling-safe"
else
TMT_PROVISION_OPTS="--how container"
fi
if [ -n "${{ github.event.inputs.plan_filter }}" ]; then
PLAN_FILTER_PARAM="plan --filter '${{ github.event.inputs.plan_filter }}'"
fi
if [ -z "${{ github.event.inputs.use_built_from_src }}" ] || [ "${{ github.event.inputs.use_built_from_src }}" == "true" ]; then
CONTEXT_PARAM="--context use_built_from_src=true"
else
CONTEXT_PARAM="--context use_built_from_src=false"
fi
eval "tmt $CONTEXT_PARAM run --all --debug -vvvv provision $TMT_PROVISION_OPTS $PLAN_FILTER_PARAM"