From c9c197120892649543815458aa389e2dd500e48b Mon Sep 17 00:00:00 2001 From: jlenh Date: Fri, 12 Sep 2025 14:18:47 +0200 Subject: [PATCH] Update pip install commands w/ --no-deps flag --- .github/workflows/create-condalock-file.yml | 2 +- .github/workflows/install-from-condalock-file.yml | 2 +- .github/workflows/install-from-source.yml | 4 ++-- .github/workflows/run-tests-monitor.yml | 8 ++++---- .github/workflows/test-development.yml | 4 ++-- .github/workflows/test.yml | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/create-condalock-file.yml b/.github/workflows/create-condalock-file.yml index 97bbef07d4..39d6fc3cd2 100644 --- a/.github/workflows/create-condalock-file.yml +++ b/.github/workflows/create-condalock-file.yml @@ -61,7 +61,7 @@ jobs: which python pip --version - name: Install ESMValTool - run: pip install -e .[develop] + run: pip install --no-deps -e .[develop] - name: Check ESMValTool version run: esmvaltool --help - name: Check ESMValTool help diff --git a/.github/workflows/install-from-condalock-file.yml b/.github/workflows/install-from-condalock-file.yml index a3d9e4b4e9..b60c296fea 100644 --- a/.github/workflows/install-from-condalock-file.yml +++ b/.github/workflows/install-from-condalock-file.yml @@ -51,7 +51,7 @@ jobs: - run: conda create --name esmvaltool-fromlock --file conda-linux-64.lock - run: which python - run: pip --version - - run: pip install -e .[develop] + - run: pip install --no-deps -e .[develop] - run: esmvaltool --help - run: esmvaltool version 2>&1 | tee source_install_linux_artifacts_python_${{ matrix.python-version }}/version.txt - run: pre-commit run -a diff --git a/.github/workflows/install-from-source.yml b/.github/workflows/install-from-source.yml index 954099a12c..118e5f4a59 100644 --- a/.github/workflows/install-from-source.yml +++ b/.github/workflows/install-from-source.yml @@ -41,7 +41,7 @@ jobs: mamba --version 2>&1 | tee source_install_linux_artifacts_python_${{ matrix.python-version }}/conda_version.txt python -V 2>&1 | tee source_install_linux_artifacts_python_${{ matrix.python-version }}/python_version.txt - name: Install - run: pip install -e .[develop] 2>&1 | tee source_install_linux_artifacts_python_${{ matrix.python-version }}/install.txt + run: pip install --no-deps -e .[develop] 2>&1 | tee source_install_linux_artifacts_python_${{ matrix.python-version }}/install.txt - name: Verify installation run: | esmvaltool --help @@ -76,7 +76,7 @@ jobs: # - run: mkdir -p source_install_osx_artifacts_python_${{ matrix.python-version }} # - run: conda --version 2>&1 | tee source_install_osx_artifacts_python_${{ matrix.python-version }}/conda_version.txt # - run: python -V 2>&1 | tee source_install_osx_artifacts_python_${{ matrix.python-version }}/python_version.txt -# - run: pip install -e .[develop] 2>&1 | tee source_install_osx_artifacts_python_${{ matrix.python-version }}/install.txt +# - run: pip install --no-deps -e .[develop] 2>&1 | tee source_install_osx_artifacts_python_${{ matrix.python-version }}/install.txt # - run: esmvaltool --help # - run: esmvaltool version 2>&1 | tee source_install_osx_artifacts_python_${{ matrix.python-version }}/version.txt # - name: Upload artifacts diff --git a/.github/workflows/run-tests-monitor.yml b/.github/workflows/run-tests-monitor.yml index 1c7b266694..1d725fc442 100644 --- a/.github/workflows/run-tests-monitor.yml +++ b/.github/workflows/run-tests-monitor.yml @@ -46,9 +46,9 @@ jobs: - name: Inspect environment run: conda list - name: Install pytest-monitor - run: pip install pytest-monitor + run: pip install --no-deps pytest-monitor - name: Install ESMValTool - run: pip install -e .[develop] 2>&1 | tee test_linux_artifacts_python_${{ matrix.python-version }}/install.txt + run: pip install --no-deps -e .[develop] 2>&1 | tee test_linux_artifacts_python_${{ matrix.python-version }}/install.txt - name: Run tests run: > pytest -n 2 -m "not installation" --db ../.pymon 2>&1 @@ -95,10 +95,10 @@ jobs: - name: Install git run: mamba install -c conda-forge git - name: Install pytest-monitor - run: pip install pytest-monitor + run: pip install --no-deps pytest-monitor - name: Install ESMValTool run: > - pip install -e .[develop] 2>&1 + pip install --no-deps -e .[develop] 2>&1 | tee test_osx_artifacts_python_${{ matrix.python-version }}/install.txt - name: Run tests run: > diff --git a/.github/workflows/test-development.yml b/.github/workflows/test-development.yml index c27b504192..68eaf22f36 100644 --- a/.github/workflows/test-development.yml +++ b/.github/workflows/test-development.yml @@ -47,13 +47,13 @@ jobs: mamba --version 2>&1 | tee develop_test_linux_artifacts_python_${{ matrix.python-version }}/conda_version.txt python -V 2>&1 | tee develop_test_linux_artifacts_python_${{ matrix.python-version }}/python_version.txt - name: Install ESMValTool - run: pip install -e .[develop] 2>&1 | tee develop_test_linux_artifacts_python_${{ matrix.python-version }}/install.txt + run: pip install --no-deps -e .[develop] 2>&1 | tee develop_test_linux_artifacts_python_${{ matrix.python-version }}/install.txt - name: Install development version of ESMValCore run: | cd .. git clone https://github.com/ESMValGroup/ESMValCore.git cd ESMValCore - pip install -e .[develop] + pip install --no-deps -e .[develop] - name: Check code quality run: pre-commit run -a - name: Run tests diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 90ff680799..ffd2ae35bd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -45,7 +45,7 @@ jobs: - name: Inspect environment run: conda list - name: Install ESMValTool - run: pip install -e .[develop] 2>&1 | tee test_linux_artifacts_python_${{ matrix.python-version }}/install.txt + run: pip install --no-deps -e .[develop] 2>&1 | tee test_linux_artifacts_python_${{ matrix.python-version }}/install.txt - name: Inspect environment run: conda list - name: Inspect environment @@ -101,7 +101,7 @@ jobs: - name: Install git run: mamba install -c conda-forge git - name: Install ESMValTool - run: pip install -e .[develop] 2>&1 | tee test_osx_artifacts_python_${{ matrix.python-version }}/install.txt + run: pip install --no-deps -e .[develop] 2>&1 | tee test_osx_artifacts_python_${{ matrix.python-version }}/install.txt - name: Inspect environment run: conda list - name: Check code quality