Skip to content

Commit

Permalink
test: test python3.12 settings
Browse files Browse the repository at this point in the history
  • Loading branch information
mumarkhan999 committed Mar 7, 2024
1 parent 21d10e9 commit 9d384ae
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,31 @@ on:
jobs:
build:

runs-on: ${{ matrix.os }}
runs-on: ubuntu-20.04
strategy:
matrix:
os: [ubuntu-20.04]
python-version:
- '3.8'
- '3.12'
- '3.8'
- '3.12'

steps:
- uses: actions/checkout@v3
- name: setup python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- 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: Install pip
run: pip install -r requirements/pip.txt
- 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
Expand Down

0 comments on commit 9d384ae

Please sign in to comment.