diff --git a/.github/actions/install-tmt/action.yml b/.github/actions/install-tmt/action.yml new file mode 100644 index 0000000000..8fea40d585 --- /dev/null +++ b/.github/actions/install-tmt/action.yml @@ -0,0 +1,15 @@ +name: 'Install tmt' +description: 'Install a pinned version of tmt (Test Management Tool)' +runs: + using: 'composite' + steps: + - name: Install tmt + shell: bash + run: | + set -xeuo pipefail + # Pinned because tmt releases have repeatedly regressed reboot + # handling for the `connect` provisioner we use here (e.g. + # https://github.com/teemtee/tmt/issues/5068); bump deliberately. + # renovate: datasource=pypi depName=tmt + export VERSION=1.74.0 + pip install --user "tmt[provision-virtual]==${VERSION}" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b05af3f3b1..9fa42e5f8a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -285,7 +285,7 @@ jobs: with: libvirt: true - name: Install tmt - run: pip install --user "tmt[provision-virtual]" + uses: ./.github/actions/install-tmt - name: Setup env run: | @@ -380,7 +380,7 @@ jobs: with: libvirt: true - name: Install tmt - run: pip install --user "tmt[provision-virtual]" + uses: ./.github/actions/install-tmt - name: Setup env run: | @@ -442,7 +442,7 @@ jobs: with: libvirt: true - name: Install tmt - run: pip install --user "tmt[provision-virtual]" + uses: ./.github/actions/install-tmt - name: Setup env run: | @@ -508,7 +508,7 @@ jobs: with: libvirt: true - name: Install tmt - run: pip install --user "tmt[provision-virtual]" + uses: ./.github/actions/install-tmt - name: Setup env run: |