Skip to content

feat: add python 3.12 support #950

feat: add python 3.12 support

feat: add python 3.12 support #950

Workflow file for this run

name: Python CI
on:
push:
branches: [master]
pull_request:
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version:
- '3.8'
- '3.12'
steps:
- uses: actions/checkout@v3
- name: Install Dependencies
run: sudo apt-get install -y build-essential libssl-dev zlib1g-dev libncurses5-dev libncursesw5-dev libreadline-dev libsqlite3-dev libgdbm-dev libdb5.3-dev libbz2-dev libexpat1-dev liblzma-dev libffi-dev libffi-dev
- name: Download and Extract Python 3.12
if: matrix.python-version == '3.12'
run: |
wget https://www.python.org/ftp/python/3.12.0/Python-3.12.0.tgz
tar -xf Python-3.12.0.tgz
- name: Compile and Install Python 3.12
if: matrix.python-version == '3.12'
run: |
cd Python-3.12.0
./configure
make
sudo make install
- name: Install Dependencies
run: make dev-install
- name: Run Tests
run: make test