Commit b8a2e1bd authored by vertighel's avatar vertighel
Browse files

CI: save runner disk — no pip cache, no separate install job

The git-run-ia2 runner is out of disk and `pip install -e .` fails.
- PIP_NO_CACHE_DIR instead of a pip cache in the project dir, and no
  GitLab cache: the wheels were kept twice and stored between jobs
- drop install_project: run_pylint and pages already run
  `pip install -e .`, so a broken install still fails the pipeline

The real fix is freeing disk space on the runner.

Co-Authored-By: default avatarClaude Opus 5.5 <noreply@anthropic.com>
parent 8364a2f8
Loading
Loading
Loading
Loading
Loading
+5 −15
Changes for .gitlab-ci.yml: 5 added lines, 15 removed lines.
Original line number Diff line number Diff line
@@ -2,33 +2,23 @@ image: python:3.13

variables:
  PROJECT: "noctua"
  PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
  # The runner is short on disk: no pip cache (downloaded wheels would be
  # kept twice, and GitLab would also store the cache between jobs).
  PIP_NO_CACHE_DIR: "1"
  FORMAT_TARGETS: "${PROJECT}"
  PYLINT_TARGETS: "${PROJECT}"
  GIT_USER_EMAIL: "davide.ricci@inaf.it"
  GIT_USER_NAME: "Davide GitLab CI"
  FORMATTED_BRANCH_NAME: "validated"

cache:
  key: "$CI_COMMIT_REF_SLUG"
  paths:
    - .cache/pip

stages:
  - deploy_docs
  - setup_and_format 
  - lint
  - auto_commit

# Job 1: We don't actually need to pass artifacts here if we just want to test install
install_project:
  stage: setup_and_format 
  tags:
    - git-run-ia2 
  script:
    - pip install --upgrade pip
    - pip install -e .
  # No artifacts needed here unless you are generating files needed by others
# The install is tested by run_pylint and pages, which both run
# `pip install -e .`: no separate install job (saves runner disk).

# Job 2: Remove Trailing Whitespaces
fix_trailing_whitespaces: