Switch Airgun CI/CQ to uv #1628
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CI stages to execute against Pull Requests | |
name: Airgun - CI | |
on: | |
pull_request: | |
types: ["opened", "synchronize", "reopened"] | |
env: | |
PYCURL_SSL_LIBRARY: openssl | |
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: Install the latest version of uv and set the Python version | |
uses: astral-sh/setup-uv@v4 | |
with: | |
enable-cache: true | |
cache-dependency-glob: "**/requirements*.txt" | |
- name: Install Python ${{ matrix.python-version }} | |
run: uv python install ${{ matrix.python-version }} | |
- 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: Install the latest version of uv and set the Python version | |
uses: astral-sh/setup-uv@v4 | |
with: | |
enable-cache: true | |
cache-dependency-glob: "**/requirements*.txt" | |
- name: Install Python 3.12 | |
run: uv python install 3.12 | |
- 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 |