From 6c9c8753e1b99f98e562a875f4a1ea3095d211c5 Mon Sep 17 00:00:00 2001 From: Tatiana Al-Chueyr Date: Tue, 30 Jan 2024 21:48:06 +0000 Subject: [PATCH] Add Python 3.11 to CI/tests (#821) Python 3.11 was missing from the test matrices. --- .github/workflows/test.yml | 12 ++++++------ pyproject.toml | 3 ++- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a5a66eedf..74c3524d5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -40,7 +40,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10"] + python-version: ["3.8", "3.9", "3.10", "3.11"] airflow-version: ["2.3", "2.4", "2.5", "2.6", "2.7", "2.8"] steps: - uses: actions/checkout@v3 @@ -79,7 +79,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10"] + python-version: ["3.8", "3.9", "3.10", "3.11"] airflow-version: ["2.3", "2.4", "2.5", "2.6", "2.7", "2.8"] services: postgres: @@ -147,7 +147,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.10"] + python-version: ["3.11"] airflow-version: ["2.6"] services: @@ -227,7 +227,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.10"] + python-version: ["3.11"] airflow-version: ["2.7"] steps: @@ -296,10 +296,10 @@ jobs: - uses: actions/checkout@v3 with: ref: ${{ github.event.pull_request.head.sha || github.ref }} - - name: Set up Python 3.10 + - name: Set up Python 3.11 uses: actions/setup-python@v3 with: - python-version: '3.10' + python-version: '3.11' - name: Install coverage run: | pip3 install coverage diff --git a/pyproject.toml b/pyproject.toml index 864b0fb42..e2ade9b7c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,6 +32,7 @@ classifiers = [ "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", ] dependencies = [ "aenum", @@ -165,7 +166,7 @@ pre-install-commands = [""" """ ] [[tool.hatch.envs.tests.matrix]] -python = ["3.8", "3.9", "3.10"] +python = ["3.8", "3.9", "3.10", "3.11"] airflow = ["2.3", "2.4", "2.5", "2.6", "2.7", "2.8"]