Skip to content

Commit 4af973e

Browse files
committed
ci(macos): Align macos script with current linux
Also use venv instead of global install brew/python doesn't like installing python packages globally: ``` error: externally-managed-environment × This environment is externally managed ```
1 parent 17d16a3 commit 4af973e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,4 +114,4 @@ jobs:
114114
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
115115
with:
116116
persist-credentials: false
117-
- run: env PYTESTFLAGS=--verbose test/macos-script.sh
117+
- run: env PYTESTFLAGS="--verbose -p no:cacheprovider" test/macos-script.sh

test/macos-script.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ brew install \
88
automake \
99
bash
1010

11+
python3 -m venv venv
12+
#shellcheck disable=SC1091
13+
source venv/bin/activate
1114
python3 -m pip install -r test/requirements.txt
1215

1316
export bashcomp_bash=bash
@@ -18,5 +21,4 @@ autoreconf -i
1821
make -j
1922

2023
make distcheck \
21-
PYTESTFLAGS="${PYTESTFLAGS---verbose --numprocesses=auto --dist=loadfile}"
22-
cp -p bash-completion-*.tar.* "$oldpwd/"
24+
PYTESTFLAGS="${PYTESTFLAGS---verbose -p no:cacheprovider --numprocesses=auto --dist=loadfile}"

0 commit comments

Comments
 (0)