From e3787c55cd242d83257d2bc0ab819aab56dda3cb Mon Sep 17 00:00:00 2001 From: Chuck Daniels Date: Thu, 23 Jan 2025 18:47:33 -0500 Subject: [PATCH] Silence pip root user warnings in CI (#384) In addition, to aid in use of `act` for locally running GH jobs: - Uniquely name test jobs - Use `micromamba` in place of `conda` because, oddly, `act` containers are unable to find `conda`, and fail --- .github/workflows/main.yml | 9 ++++++--- .github/workflows/min-deps.yml | 11 +++++++---- .github/workflows/release.yml | 3 +++ .github/workflows/typing.yml | 3 +++ .github/workflows/upstream.yml | 11 +++++++---- 5 files changed, 26 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 81ed54be..4037abea 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,8 +16,10 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true -jobs: +env: + PIP_ROOT_USER_ACTION: ignore +jobs: test: name: ${{ matrix.python-version }}-build runs-on: ubuntu-latest @@ -41,10 +43,11 @@ jobs: - name: Install virtualizarr run: | python -m pip install -e . --no-deps + - name: Conda list information run: | - conda env list - conda list + micromamba env list + micromamba list - name: Running Tests run: | diff --git a/.github/workflows/min-deps.yml b/.github/workflows/min-deps.yml index 066e1ba3..1c3a598f 100644 --- a/.github/workflows/min-deps.yml +++ b/.github/workflows/min-deps.yml @@ -16,9 +16,11 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true -jobs: +env: + PIP_ROOT_USER_ACTION: ignore - test: +jobs: + test-min-deps: name: ${{ matrix.python-version }}-build runs-on: ubuntu-latest defaults: @@ -41,10 +43,11 @@ jobs: - name: Install virtualizarr run: | python -m pip install -e . --no-deps + - name: Conda list information run: | - conda env list - conda list + micromamba env list + micromamba list - name: Running Tests run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fd645e6e..850546a8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,6 +11,9 @@ on: permissions: contents: read +env: + PIP_ROOT_USER_ACTION: ignore + jobs: build-artifacts: runs-on: ubuntu-latest diff --git a/.github/workflows/typing.yml b/.github/workflows/typing.yml index 0540801b..1834d349 100644 --- a/.github/workflows/typing.yml +++ b/.github/workflows/typing.yml @@ -16,6 +16,9 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +env: + PIP_ROOT_USER_ACTION: ignore + jobs: mypy: name: mypy diff --git a/.github/workflows/upstream.yml b/.github/workflows/upstream.yml index 9140896b..e847cf62 100644 --- a/.github/workflows/upstream.yml +++ b/.github/workflows/upstream.yml @@ -16,9 +16,11 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true -jobs: +env: + PIP_ROOT_USER_ACTION: ignore - test: +jobs: + test-upstream: name: ${{ matrix.python-version }}-build runs-on: ubuntu-latest defaults: @@ -41,10 +43,11 @@ jobs: - name: Install virtualizarr run: | python -m pip install -e . --no-deps + - name: Conda list information run: | - conda env list - conda list + micromamba env list + micromamba list - name: Running Tests run: |