From f036e7ac3c973e2ffe2afb825c4e9add49cefff9 Mon Sep 17 00:00:00 2001 From: jessicasyu <15913767+jessicasyu@users.noreply.github.com> Date: Fri, 6 Sep 2024 14:29:45 -0400 Subject: [PATCH] Add Python 3.11 to workflows --- .github/workflows/build.yml | 5 +++-- .github/workflows/documentation.yml | 3 ++- .github/workflows/lint.yml | 3 ++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f416425..a337c72 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: - python-version: ["3.9", "3.10"] + python-version: ["3.9", "3.10", "3.11"] steps: @@ -16,6 +16,7 @@ jobs: uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} + id: setup-python uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} @@ -31,7 +32,7 @@ jobs: uses: actions/cache@v4 with: path: .venv - key: ${{ runner.os }}-${{ hashFiles('**/poetry.lock') }} + key: ${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} - name: Install dependencies if: steps.cached-dependencies.outputs.cache-hit != 'true' diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index d2e7be8..981b947 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -15,6 +15,7 @@ jobs: uses: actions/checkout@v4 - name: Set up Python 3.9 + id: setup-python uses: actions/setup-python@v5 with: python-version: 3.9 @@ -30,7 +31,7 @@ jobs: uses: actions/cache@v4 with: path: .venv - key: ${{ runner.os }}-${{ hashFiles('**/poetry.lock') }} + key: ${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} - name: Install dependencies if: steps.cached-dependencies.outputs.cache-hit != 'true' diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b4eac0f..8c184d4 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -12,6 +12,7 @@ jobs: uses: actions/checkout@v4 - name: Set up Python 3.9 + id: setup-python uses: actions/setup-python@v5 with: python-version: 3.9 @@ -27,7 +28,7 @@ jobs: uses: actions/cache@v4 with: path: .venv - key: ${{ runner.os }}-${{ hashFiles('**/poetry.lock') }} + key: ${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} - name: Install dependencies if: steps.cached-dependencies.outputs.cache-hit != 'true'