From 6f37e0b7c68d84623874b5f4006dc756cc07e291 Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Wed, 19 Nov 2025 11:51:59 -0500 Subject: [PATCH] build: Update github workflows that relied on pip.txt Use the `pre-requirements` target to ensure that pip is installed at a version that's valid for the rest of the workflow. --- .github/workflows/ci-static-analysis.yml | 2 +- .github/workflows/lint-imports.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-static-analysis.yml b/.github/workflows/ci-static-analysis.yml index deb2853899..2424eb5625 100644 --- a/.github/workflows/ci-static-analysis.yml +++ b/.github/workflows/ci-static-analysis.yml @@ -25,7 +25,7 @@ jobs: run: sudo apt update && sudo apt install -y libxmlsec1-dev - name: Install pip - run: python -m pip install -r requirements/pip.txt + run: make pre-requirements - name: Get pip cache dir id: pip-cache-dir diff --git a/.github/workflows/lint-imports.yml b/.github/workflows/lint-imports.yml index 03034b465a..22da4c4d04 100644 --- a/.github/workflows/lint-imports.yml +++ b/.github/workflows/lint-imports.yml @@ -25,7 +25,7 @@ jobs: run: sudo apt update && sudo apt install -y libxmlsec1-dev - name: Install pip - run: python -m pip install -r requirements/pip.txt + run: make pre-requirements - name: Get pip cache dir id: pip-cache-dir @@ -40,7 +40,7 @@ jobs: restore-keys: ${{ runner.os }}-pip- - name: Install python dependencies - run: pip install -r requirements/edx/development.txt + run: make dev-requirements # As long there are sub-projects[1] in edx-platform, we analyze each # project separately here, in order to make import-linting errors easier