Skip to content

Switch Airgun CI/CQ to uv #1630

Switch Airgun CI/CQ to uv

Switch Airgun CI/CQ to uv #1630

Workflow file for this run

# CI stages to execute against Pull Requests
name: Airgun - CI
on:
pull_request:
types: ["opened", "synchronize", "reopened"]
env:
PYCURL_SSL_LIBRARY: openssl
UV_SYSTEM_PYTHON: 1
jobs:
codechecks:
name: Code Quality
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12']
steps:
- name: Checkout Airgun
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install the latest version of uv and set the Python version
uses: astral-sh/setup-uv@v4
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
cache-dependency-glob: '**/requirements*.txt'
- name: Install Dependencies
run: |
sudo apt update
uv pip install -U -r requirements.txt -r requirements-optional.txt
- name: Analysis (git diff)
if: failure()
run: git diff
- name: Docs Build
run: |
make docs-html
robottelo-cross-check:
name: Robottelo installation cross-check
runs-on: ubuntu-latest
needs: codechecks
steps:
- name: Checkout Airgun
uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install the latest version of uv and set the Python version
uses: astral-sh/setup-uv@v4
with:
python-version: '3.12'
enable-cache: true
cache-dependency-glob: '**/requirements*.txt'
- name: Download robottelo's requirements.txt
run: |
curl -s https://raw.githubusercontent.com/SatelliteQE/robottelo/$GITHUB_BASE_REF/requirements.txt -o requirements-robottelo.txt
- name: Remove airgun from robottelo requirements
run: |
sed -i '/airgun/d' requirements-robottelo.txt
- name: Robottelo Installability
run: |
uv pip install -U -r requirements-robottelo.txt -r requirements.txt -r requirements-optional.txt