Skip to content

Commit e3787c5

Browse files
authored
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
1 parent 30b7c00 commit e3787c5

File tree

5 files changed

+26
-11
lines changed

5 files changed

+26
-11
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ concurrency:
1616
group: ${{ github.workflow }}-${{ github.ref }}
1717
cancel-in-progress: true
1818

19-
jobs:
19+
env:
20+
PIP_ROOT_USER_ACTION: ignore
2021

22+
jobs:
2123
test:
2224
name: ${{ matrix.python-version }}-build
2325
runs-on: ubuntu-latest
@@ -41,10 +43,11 @@ jobs:
4143
- name: Install virtualizarr
4244
run: |
4345
python -m pip install -e . --no-deps
46+
4447
- name: Conda list information
4548
run: |
46-
conda env list
47-
conda list
49+
micromamba env list
50+
micromamba list
4851
4952
- name: Running Tests
5053
run: |

.github/workflows/min-deps.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ concurrency:
1616
group: ${{ github.workflow }}-${{ github.ref }}
1717
cancel-in-progress: true
1818

19-
jobs:
19+
env:
20+
PIP_ROOT_USER_ACTION: ignore
2021

21-
test:
22+
jobs:
23+
test-min-deps:
2224
name: ${{ matrix.python-version }}-build
2325
runs-on: ubuntu-latest
2426
defaults:
@@ -41,10 +43,11 @@ jobs:
4143
- name: Install virtualizarr
4244
run: |
4345
python -m pip install -e . --no-deps
46+
4447
- name: Conda list information
4548
run: |
46-
conda env list
47-
conda list
49+
micromamba env list
50+
micromamba list
4851
4952
- name: Running Tests
5053
run: |

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
permissions:
1212
contents: read
1313

14+
env:
15+
PIP_ROOT_USER_ACTION: ignore
16+
1417
jobs:
1518
build-artifacts:
1619
runs-on: ubuntu-latest

.github/workflows/typing.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ concurrency:
1616
group: ${{ github.workflow }}-${{ github.ref }}
1717
cancel-in-progress: true
1818

19+
env:
20+
PIP_ROOT_USER_ACTION: ignore
21+
1922
jobs:
2023
mypy:
2124
name: mypy

.github/workflows/upstream.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ concurrency:
1616
group: ${{ github.workflow }}-${{ github.ref }}
1717
cancel-in-progress: true
1818

19-
jobs:
19+
env:
20+
PIP_ROOT_USER_ACTION: ignore
2021

21-
test:
22+
jobs:
23+
test-upstream:
2224
name: ${{ matrix.python-version }}-build
2325
runs-on: ubuntu-latest
2426
defaults:
@@ -41,10 +43,11 @@ jobs:
4143
- name: Install virtualizarr
4244
run: |
4345
python -m pip install -e . --no-deps
46+
4447
- name: Conda list information
4548
run: |
46-
conda env list
47-
conda list
49+
micromamba env list
50+
micromamba list
4851
4952
- name: Running Tests
5053
run: |

0 commit comments

Comments
 (0)