mirror of
https://github.com/pyenv/pyenv.git
synced 2026-06-06 00:48:13 +09:00
The options is available since 3.10.0+ (https://github.com/python/cpython/pull/24820) but has no effect until 3.11.0 (cpython b9e9292d75fdea621e05e39b8629e6935d282d0d) and broken in MacOS until 3.12.2 (cpython cc13eabc7ce08accf49656e258ba500f74a1dae8), we add downstream patches to fix that except for 3.11-dev where we disabled it
41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
name: macos_build
|
|
on: [pull_request, push]
|
|
|
|
permissions:
|
|
contents: read # to fetch code (actions/checkout)
|
|
|
|
jobs:
|
|
macos_build:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
python-version:
|
|
- "3.10"
|
|
- "3.11"
|
|
- "3.12"
|
|
- "3.13"
|
|
- "3.14"
|
|
runs-on: macos-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- run: |
|
|
brew install openssl readline sqlite3 xz tcl-tk@8 libb2 zstd
|
|
- run: |
|
|
#envvars
|
|
export PYENV_ROOT="$GITHUB_WORKSPACE"
|
|
echo "PYENV_ROOT=$PYENV_ROOT" >> $GITHUB_ENV
|
|
echo "$PYENV_ROOT/shims:$PYENV_ROOT/bin" >> $GITHUB_PATH
|
|
- run: |
|
|
#build
|
|
pyenv --debug install ${{ matrix.python-version }} && rc=$? || rc=$?
|
|
if [[ $rc -ne 0 ]]; then echo config.log:; cat $TMPDIR/python-build*/*/config.log; false; fi
|
|
pyenv global ${{ matrix.python-version }}
|
|
- run: |
|
|
#print version
|
|
python --version
|
|
python -m pip --version
|
|
- shell: python # Prove that actual Python == expected Python
|
|
env:
|
|
EXPECTED_PYTHON: ${{ matrix.python-version }}
|
|
run: import os, sys ; assert sys.version.startswith(os.getenv("EXPECTED_PYTHON"))
|