Skip to content

Commit 4d5bbd0

Browse files
Run pythoninfo on installed, and run test w/ python${LDVERSION}
1 parent caf7b26 commit 4d5bbd0

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/reusable-install.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,14 @@ jobs:
3838
run: ./configure --config-cache --with-pydebug --prefix="$INSTALL_DIR"
3939
- name: Build CPython
4040
run: make -j
41-
- name: Display build info
42-
run: make pythoninfo
4341
- name: Install CPython
4442
run: make install
43+
- name: Set installed interpreter
44+
run: |
45+
ldversion=$(./python -c 'import sysconfig; print(sysconfig.get_config_var("LDVERSION"))')
46+
echo "INSTALLED_PYTHON=${INSTALL_DIR}/bin/python${ldversion}" >> "$GITHUB_ENV"
47+
- name: Display build info
48+
run: |
49+
"$INSTALLED_PYTHON" -m test.pythoninfo
4550
- name: Test the installed Python
46-
run: xvfb-run "$INSTALL_DIR/bin/python3" -m test -j0 --fast-ci --timeout=900
51+
run: xvfb-run "$INSTALLED_PYTHON" -m test -j0 --fast-ci --timeout=900

0 commit comments

Comments
 (0)