Skip to content

Commit

Permalink
Silence pip root user warnings in CI (#384)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
chuckwondo authored Jan 23, 2025
1 parent 30b7c00 commit e3787c5
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 11 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/min-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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: |
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
permissions:
contents: read

env:
PIP_ROOT_USER_ACTION: ignore

jobs:
build-artifacts:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/typing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
PIP_ROOT_USER_ACTION: ignore

jobs:
mypy:
name: mypy
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/upstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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: |
Expand Down

0 comments on commit e3787c5

Please sign in to comment.