Skip to content

Commit 6a3f902

Browse files
author
Ayush Jha
committed
read python version from stderr
1 parent 8ebde9a commit 6a3f902

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ jobs:
173173
export PATH="$HOME/.pyenv/versions/$(cat .python-version)/bin:$PATH"
174174
if test -d .env/bin/; then source .env/bin/activate; else source .env/Scripts/activate; fi
175175
maturin list-python
176-
PYTHON_INTERPRETER=$(maturin list-python | grep -o "CPython $(cat .python-version | grep -o -E '^[^\.]+\.[^\.]+').* at .*" | cut -d' ' -f 4 | tr '\\' '/')
176+
PYTHON_INTERPRETER=$(maturin list-python 2>&1 | grep -o "CPython $(cat .python-version | grep -o -E '^[^\.]+\.[^\.]+').* at .*" | cut -d' ' -f 4 | tr '\\' '/')
177177
echo "Selected interpreter: ${PYTHON_INTERPRETER}"
178178
just build-all "${{ matrix.target.target-name }}"
179179

0 commit comments

Comments
 (0)