Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch Airgun CI/CQ to uv #1685

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 22 additions & 4 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

env:
PYCURL_SSL_LIBRARY: openssl
UV_SYSTEM_PYTHON: 1

jobs:
codechecks:
Expand All @@ -24,11 +25,19 @@ jobs:
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
**/setup.py

- name: Install Dependencies
run: |
sudo apt update
pip install -U pip
pip install -U -r requirements.txt -r requirements-optional.txt
uv pip install -U -r requirements.txt -r requirements-optional.txt

- name: Analysis (git diff)
if: failure()
Expand All @@ -41,6 +50,7 @@ jobs:
robottelo-cross-check:
name: Robottelo installation cross-check
runs-on: ubuntu-latest
needs: codechecks
steps:
- name: Checkout Airgun
uses: actions/checkout@v4
Expand All @@ -50,6 +60,15 @@ jobs:
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
**/setup.py

- name: Download robottelo's requirements.txt
run: |
curl -s https://raw.githubusercontent.com/SatelliteQE/robottelo/$GITHUB_BASE_REF/requirements.txt -o requirements-robottelo.txt
Expand All @@ -60,5 +79,4 @@ jobs:

- name: Robottelo Installability
run: |
pip install -U pip
pip install -U -r requirements-robottelo.txt -r requirements.txt -r requirements-optional.txt
uv pip install -U -r requirements-robottelo.txt -r requirements.txt -r requirements-optional.txt
Loading