Skip to content

Python 3.11

Python 3.11 #14

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- portable-python
workflow_dispatch:
inputs:
verbose:
required: false
type: boolean
env:
MACOSX_DEPLOYMENT_TARGET: 10.5
jobs:
tests:
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: true
matrix:
runs-on: [macos-latest]
python-version: [3.8.18, 3.9.18, 3.10.13, 3.11.7]
name: python-${{ matrix.python-version }}-${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v3
- name: Setup cmake
uses: jwlawson/[email protected]
with:
cmake-version: 3.13.5
- name: Install tools
run: |
brew install gpatch
- name: Build
run: |
mkdir -p python-build && mkdir -p python-install
cd python-build
cmake \
${{ inputs.verbose && '--trace-expand --debug-find' || '' }} \
-DCMAKE_INSTALL_PREFIX:PATH=${{ github.workspace }}/python-install \
-DCMAKE_OSX_DEPLOYMENT_TARGET=${{ env.MACOSX_DEPLOYMENT_TARGET }} \
${{ startsWith(matrix.python-version, '3.11') && '-DUSE_SYSTEM_TCL=OFF' || '' }} \
-DPYTHON_VERSION=${{ matrix.python-version }} \
..
make -j4 ${{ inputs.verbose && 'VERBOSE=1' || '' }}
make install
- name: Check sysconfig
run: |
./python-install/bin/python -m sysconfig
- name: Test
run: |
./python-install/bin/python -m test || true