Commit 76ae8285 authored by Sergio Gimenez's avatar Sergio Gimenez
Browse files

fix(ci): add ensurepip bootstrap for shell executor hosts

Runner uses shell executor, not Docker. Host Python 3.13.5 lacks pip;
ensurepip bootstraps it. Also remove misleading image: directive.
parent bb34fa93
Loading
Loading
Loading
Loading
Loading
+5 −2
Changes for .gitlab-ci.yml: 5 added lines, 2 removed lines.
Original line number Diff line number Diff line
image: python:3.12-slim

stages:
  - lint
  - test
@@ -18,6 +16,7 @@ cache:
.ansible_setup:
  before_script:
    - python3 --version
    - python3 -m ensurepip --upgrade 2>/dev/null || python3 -m ensurepip
    - python3 -m pip install --upgrade pip
    - python3 -m pip install -r ansible/requirements.txt
    - ansible-galaxy collection install -r ansible/requirements.yml
@@ -65,6 +64,8 @@ python-smoke:
docs:
  stage: docs
  script:
    - python3 --version
    - python3 -m ensurepip --upgrade 2>/dev/null || python3 -m ensurepip
    - python3 -m pip install --upgrade pip
    - python3 -m pip install -r docs/requirements.txt
    - python3 -m mkdocs build --strict
@@ -76,6 +77,8 @@ docs:
pages:
  stage: deploy
  script:
    - python3 --version
    - python3 -m ensurepip --upgrade 2>/dev/null || python3 -m ensurepip
    - python3 -m pip install --upgrade pip
    - python3 -m pip install -r docs/requirements.txt
    - python3 -m mkdocs build --strict