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"))