Skip to content

Commit

Permalink
Switch Airgun CI/CQ to uv
Browse files Browse the repository at this point in the history
  • Loading branch information
ogajduse committed Dec 19, 2024
1 parent 06e081f commit dbef798
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,19 @@ jobs:
- name: Checkout Airgun
uses: actions/checkout@v4

- name: Set Up Python-${{ matrix.python-version }}
uses: actions/setup-python@v5
- 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 Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}

- 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,14 +44,19 @@ jobs:
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
uses: actions/setup-python@v5
- 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: Install Python 3.12
run: uv python install 3.12

- name: Download robottelo's requirements.txt
run: |
Expand All @@ -60,5 +68,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

0 comments on commit dbef798

Please sign in to comment.