Skip to content

Add retry for virtctl download to handle transient SSL errors #2464

Add retry for virtctl download to handle transient SSL errors

Add retry for virtctl download to handle transient SSL errors #2464

name: Utilities Unit Tests
on:
pull_request_target:
branches:
- main
paths:
- 'utilities/**'
- '!utilities/unittests/**'
workflow_dispatch:
jobs:
utilities-unit-tests:
name: Run Utilities Unit Tests
runs-on: ubuntu-latest
timeout-minutes: 15
# Org members run automatically; outside contributors need maintainer approval
environment: ${{ (github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository && !contains(fromJSON('["COLLABORATOR","MEMBER","OWNER"]'), github.event.pull_request.author_association)) && 'external-pr-tests' || '' }}
permissions:
contents: read
pull-requests: read
env:
PYTHONPATH: ${{ github.workspace }}
steps:
- name: Check out code
uses: actions/checkout@v7
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
allow-unsafe-pr-checkout: true
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@v8.2.0
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Install uv-tox
run: uv tool install tox --with tox-uv
- name: Run tests
run: tox -e utilities-unittests
- name: Upload coverage to Codecov
if: success()
uses: codecov/codecov-action@v7
with:
file: utilities/coverage.xml
flags: utilities
name: utilities-coverage