Skip to content

Commit 4446fca

Browse files
committed
work around for macOS login shells
1 parent 4025a14 commit 4446fca

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/tests.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ concurrency:
44
cancel-in-progress: true
55
on: # yamllint disable-line rule:truthy
66
push:
7-
branches: ["main", "maint/*", "pixi2"]
7+
branches: ["main", "maint/*"]
88
pull_request:
9-
branches: ["main", "maint/*", "pixi2"]
9+
branches: ["main", "maint/*"]
1010
# adapted from spyder-ide/spyder
1111
workflow_dispatch:
1212
inputs:
@@ -111,6 +111,10 @@ jobs:
111111
timeout-minutes: 80
112112
with:
113113
detached: true
114+
# Bash login shell on MacOS prepend /usr/bin to PATH, which masks all other installations of Python
115+
- name: Workaround for macOS behavior on login shells
116+
run: echo "export PATH=\"${{ github.workspace }}/.pixi/envs/default/bin:$PATH\"" | tee -a ~/.bash_profile
117+
if: startsWith(matrix.os, 'macos')
114118
- run: ./tools/github_actions_env_vars.sh
115119
# Xvfb/OpenGL
116120
- uses: pyvista/setup-headless-display-action@v4

0 commit comments

Comments
 (0)