Skip to content

Commit

Permalink
Added Python 3.12 Support (#84)
Browse files Browse the repository at this point in the history
* poetry update --with test,dev,ci,docs

* Added Python 3.12 Support

* Trigger CI tests if tox.ini was changed

* Added sudo apt install -y libmemcached-dev to CI Environments
  • Loading branch information
Nusnus authored Nov 13, 2023
1 parent cf7453a commit 6bdb7c5
Show file tree
Hide file tree
Showing 5 changed files with 271 additions and 257 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@ jobs:
uses: actions/checkout@v4

- name: Install apt packages
run: sudo apt update
run: |
sudo apt update
sudo apt install -y libmemcached-dev
- name: Set up Python 3.11
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: '3.12'

- name: Install dependencies
run: |
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/parallel-support.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ on:
- "**.txt"
- ".github/workflows/parallel-support.yml"
- "**.toml"
- "tox.ini"
pull_request:
paths:
- "**.py"
- "**.txt"
- "**.toml"
- ".github/workflows/parallel-support.yml"
- "tox.ini"

permissions:
contents: read # to fetch code (actions/checkout)
Expand All @@ -28,7 +30,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.11"]
python-version: ["3.12"]
os: ["ubuntu-latest"]

steps:
Expand All @@ -42,6 +44,7 @@ jobs:
if: startsWith(matrix.os, 'ubuntu-')
run: |
sudo apt update
sudo apt install -y libmemcached-dev
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
Expand Down Expand Up @@ -73,7 +76,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.11"]
python-version: ["3.12"]
os: ["ubuntu-latest"]

steps:
Expand All @@ -87,6 +90,7 @@ jobs:
if: startsWith(matrix.os, 'ubuntu-')
run: |
sudo apt update
sudo apt install -y libmemcached-dev
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ on:
- "**.txt"
- ".github/workflows/python-package.yml"
- "**.toml"
- "tox.ini"
pull_request:
paths:
- "**.py"
- "**.txt"
- "**.toml"
- ".github/workflows/python-package.yml"
- "tox.ini"

permissions:
contents: read # to fetch code (actions/checkout)
Expand All @@ -28,7 +30,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os: ["ubuntu-latest"]

steps:
Expand All @@ -42,6 +44,7 @@ jobs:
if: startsWith(matrix.os, 'ubuntu-')
run: |
sudo apt update
sudo apt install -y libmemcached-dev
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
Expand Down Expand Up @@ -82,7 +85,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os: ["ubuntu-latest"]

steps:
Expand All @@ -96,6 +99,7 @@ jobs:
if: startsWith(matrix.os, 'ubuntu-')
run: |
sudo apt update
sudo apt install -y libmemcached-dev
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
Expand Down Expand Up @@ -130,7 +134,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os: ["ubuntu-latest"]

steps:
Expand All @@ -144,6 +148,7 @@ jobs:
if: startsWith(matrix.os, 'ubuntu-')
run: |
sudo apt update
sudo apt install -y libmemcached-dev
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
Expand Down
Loading

0 comments on commit 6bdb7c5

Please sign in to comment.