Skip to content

Commit

Permalink
馃И Add CI testing for Python 3.12 (#303)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Sewell <chrisj_sewell@hotmail.com>
  • Loading branch information
hugovk and chrisjsewell committed Nov 24, 2023
1 parent 98ef73d commit c4ffcd7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/benchmark.yml
Expand Up @@ -9,7 +9,7 @@ jobs:

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python 3.8
uses: actions/setup-python@v4
Expand All @@ -30,7 +30,7 @@ jobs:
run: tox -e py38-bench-packages -- --benchmark-min-rounds 20 --benchmark-json bench-packages.json

# - name: Upload package data
# uses: actions/upload-artifact@v2
# uses: actions/upload-artifact@v3
# with:
# name: bench-packages
# path: bench-packages.json
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/tests.yml
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
Expand All @@ -31,14 +31,15 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['pypy-3.8', '3.8', '3.9', '3.10', '3.11']
python-version: ['pypy-3.8', '3.8', '3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -63,7 +64,7 @@ jobs:
matrix:
python-version: ['3.8']
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
Expand All @@ -83,7 +84,7 @@ jobs:

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python 3.8
uses: actions/setup-python@v4
Expand Down Expand Up @@ -113,7 +114,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Expand Up @@ -18,6 +18,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Libraries :: Python Modules",
Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Expand Up @@ -9,7 +9,7 @@ envlist = py38
[testenv]
usedevelop = true

[testenv:py{38,39,310,311}]
[testenv:py{38,39,310,311,312}]
extras =
linkify
testing
Expand All @@ -27,11 +27,11 @@ commands_pre =
commands =
pytest {posargs}

[testenv:py{38,39,310,311}-bench-core]
[testenv:py{38,39,310,311,312}-bench-core]
extras = benchmarking
commands = pytest benchmarking/bench_core.py {posargs}

[testenv:py{38,39,310,311}-bench-packages]
[testenv:py{38,39,310,311,312}-bench-packages]
extras = benchmarking,compare
commands = pytest benchmarking/bench_packages.py {posargs}

Expand Down

0 comments on commit c4ffcd7

Please sign in to comment.