From 6834cd04dd334289b281589e48b898f21a02be6d Mon Sep 17 00:00:00 2001 From: Jair Henrique Date: Wed, 13 Dec 2023 12:40:41 -0300 Subject: [PATCH] ci: Run tests on Python 3.12 --- .github/workflows/tests.yml | 7 ++++--- pyproject.toml | 3 ++- tox.ini | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 44afdf8..a94c079 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,12 +13,12 @@ jobs: name: "Python ${{ matrix.python-version }} with ${{ matrix.session }}" strategy: matrix: - python-version: ['3.8', '3.9', '3.10', '3.11'] - session: ['memory', 'localstack'] # TODO: we don't test against production AWS + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + session: ["memory", "localstack"] # TODO: we don't test against production AWS steps: - name: Start Docker container with localstack if: matrix.session == 'localstack' - run: docker run -d -p 4566:9324 --rm softwaremill/elasticmq-native + run: docker run -d -p 4566:9324 --rm softwaremill/elasticmq-native - name: Checkout Repo uses: actions/checkout@v4 @@ -27,6 +27,7 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} + cache: poetry - name: Install dependencies run: | diff --git a/pyproject.toml b/pyproject.toml index 8c534e7..dac2a59 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ version = "0.5.12" description = "An opinionated queue processor for Amazon SQS" authors = ["Doist Developers "] license = "MIT" -classifiers=[ +classifiers = [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: MIT License", "Programming Language :: Python", @@ -13,6 +13,7 @@ classifiers=[ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", ] homepage = "https://github.com/Doist/sqs-workers" readme = "README.md" diff --git a/tox.ini b/tox.ini index a382287..5f6f6d1 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] isolated_build = True -envlist = py38,py39,py310,py311 +envlist = py38,py39,py310,py311,py312 [testenv] deps =