From f88495a756a1f005c81a75874c985c1f1a832026 Mon Sep 17 00:00:00 2001 From: Caleb Courier Date: Mon, 22 Sep 2025 09:44:43 -0500 Subject: [PATCH 1/6] test python 3.13 support --- .github/workflows/ci.yml | 2 +- .github/workflows/examples_check.yml | 2 +- .github/workflows/install_from_hub.yml | 2 +- server_ci/Dockerfile.fastapi | 2 +- server_ci/Dockerfile.flask | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0129dccfa..e6da0a0f8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -86,7 +86,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} diff --git a/.github/workflows/examples_check.yml b/.github/workflows/examples_check.yml index 6dea3d80c..d0baa49dd 100644 --- a/.github/workflows/examples_check.yml +++ b/.github/workflows/examples_check.yml @@ -36,7 +36,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: 3.11.x + python-version: 3.13.x - name: Install dependencies run: | diff --git a/.github/workflows/install_from_hub.yml b/.github/workflows/install_from_hub.yml index 1ae773e92..d9aa922f5 100644 --- a/.github/workflows/install_from_hub.yml +++ b/.github/workflows/install_from_hub.yml @@ -15,7 +15,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: 3.11.x + python-version: 3.13.x - name: pip install from main run: pip install git+https://github.com/guardrails-ai/guardrails.git@main - name: Install PII validator diff --git a/server_ci/Dockerfile.fastapi b/server_ci/Dockerfile.fastapi index 56fa0fea2..4db17f542 100644 --- a/server_ci/Dockerfile.fastapi +++ b/server_ci/Dockerfile.fastapi @@ -1,5 +1,5 @@ # New LiteLLM version has a dependency on madoka which requires g++ to build the wheel -FROM python:3.12 +FROM python:3.13 ARG GUARDRAILS_TOKEN ARG GUARDRAILS_TEMPLATE="guard-template.json" diff --git a/server_ci/Dockerfile.flask b/server_ci/Dockerfile.flask index 0565dae6a..0290d99cf 100644 --- a/server_ci/Dockerfile.flask +++ b/server_ci/Dockerfile.flask @@ -1,5 +1,5 @@ # New LiteLLM version has a dependency on madoka which requires g++ to build the wheel -FROM python:3.12 +FROM python:3.13 ARG GUARDRAILS_TOKEN ARG GUARDRAILS_TEMPLATE="guard-template.json" From 309487cdb51ac7c259a57d7e89ed50eba8855255 Mon Sep 17 00:00:00 2001 From: Caleb Courier Date: Mon, 22 Sep 2025 09:46:50 -0500 Subject: [PATCH 2/6] target self branch --- .github/workflows/install_from_hub.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/install_from_hub.yml b/.github/workflows/install_from_hub.yml index d9aa922f5..caf915b9e 100644 --- a/.github/workflows/install_from_hub.yml +++ b/.github/workflows/install_from_hub.yml @@ -17,7 +17,7 @@ jobs: with: python-version: 3.13.x - name: pip install from main - run: pip install git+https://github.com/guardrails-ai/guardrails.git@main + run: pip install git+https://github.com/guardrails-ai/guardrails.git@py-3.13 - name: Install PII validator run: | guardrails configure --token $GUARDRAILS_API_KEY --disable-metrics --enable-remote-inferencing; From 75c6baea20c27b12452ae893d0ec054fd0a56475 Mon Sep 17 00:00:00 2001 From: Caleb Courier Date: Mon, 22 Sep 2025 09:49:44 -0500 Subject: [PATCH 3/6] update all matrices --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e6da0a0f8..f34ac946f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} @@ -54,7 +54,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} @@ -118,7 +118,7 @@ jobs: runs-on: LargeBois strategy: matrix: - python-version: ["3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] # TODO: fix errors so that we can run both `make dev` and `make full` # dependencies: ['dev', 'full'] # dependencies: ["full"] From e9a4f76b8e36eab8def4bd41ea84d0417a8fd06c Mon Sep 17 00:00:00 2001 From: Caleb Courier Date: Mon, 22 Sep 2025 09:51:08 -0500 Subject: [PATCH 4/6] flask version of api won't work on python 3.13 bc of old version of guardrails --- server_ci/Dockerfile.flask | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server_ci/Dockerfile.flask b/server_ci/Dockerfile.flask index 0290d99cf..0565dae6a 100644 --- a/server_ci/Dockerfile.flask +++ b/server_ci/Dockerfile.flask @@ -1,5 +1,5 @@ # New LiteLLM version has a dependency on madoka which requires g++ to build the wheel -FROM python:3.13 +FROM python:3.12 ARG GUARDRAILS_TOKEN ARG GUARDRAILS_TEMPLATE="guard-template.json" From 9975074b04b030a9d8eee01d61f01f9da4f09ed7 Mon Sep 17 00:00:00 2001 From: Caleb Courier Date: Thu, 6 Nov 2025 08:09:31 -0600 Subject: [PATCH 5/6] check cli compatibility --- .github/workflows/cli-compatibility.yml | 2 +- .github/workflows/install_from_hub.yml | 2 +- .github/workflows/release_version.yml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cli-compatibility.yml b/.github/workflows/cli-compatibility.yml index 03a185df8..fb620a9ae 100644 --- a/.github/workflows/cli-compatibility.yml +++ b/.github/workflows/cli-compatibility.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] typer-version: ["0.16.0", "0.17.0", "0.18.0", "0.19.2"] click-version: ["8.1.0", "8.2.0"] exclude: diff --git a/.github/workflows/install_from_hub.yml b/.github/workflows/install_from_hub.yml index caf915b9e..d9aa922f5 100644 --- a/.github/workflows/install_from_hub.yml +++ b/.github/workflows/install_from_hub.yml @@ -17,7 +17,7 @@ jobs: with: python-version: 3.13.x - name: pip install from main - run: pip install git+https://github.com/guardrails-ai/guardrails.git@py-3.13 + run: pip install git+https://github.com/guardrails-ai/guardrails.git@main - name: Install PII validator run: | guardrails configure --token $GUARDRAILS_API_KEY --disable-metrics --enable-remote-inferencing; diff --git a/.github/workflows/release_version.yml b/.github/workflows/release_version.yml index af5a5caca..9fce5a6f6 100644 --- a/.github/workflows/release_version.yml +++ b/.github/workflows/release_version.yml @@ -12,9 +12,9 @@ jobs: uses: actions/checkout@v2 - name: Setup Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: - python-version: 3.11.x + python-version: 3.13.x - name: Poetry cache uses: actions/cache@v3 From d43e8f5e41dedee051b8d5f05eedb42b4afa066b Mon Sep 17 00:00:00 2001 From: Caleb Courier Date: Thu, 6 Nov 2025 08:12:31 -0600 Subject: [PATCH 6/6] test python 3.14 --- .github/workflows/ci.yml | 16 ++++++++-------- .github/workflows/cli-compatibility.yml | 4 ++-- .github/workflows/examples_check.yml | 4 ++-- .github/workflows/install_from_hub.yml | 6 +++--- .github/workflows/release_version.yml | 4 ++-- server_ci/Dockerfile.fastapi | 2 +- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 34b81d5e2..0eb68238e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,11 +20,11 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} @@ -48,11 +48,11 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} @@ -75,11 +75,11 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} @@ -102,7 +102,7 @@ jobs: runs-on: LargeBois strategy: matrix: - python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] # TODO: fix errors so that we can run both `make dev` and `make full` # dependencies: ['dev', 'full'] # dependencies: ["full"] @@ -115,7 +115,7 @@ jobs: echo 'enable_metrics=false' >> ~/.guardrailsrc - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/cli-compatibility.yml b/.github/workflows/cli-compatibility.yml index fb620a9ae..c001a43eb 100644 --- a/.github/workflows/cli-compatibility.yml +++ b/.github/workflows/cli-compatibility.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] typer-version: ["0.16.0", "0.17.0", "0.18.0", "0.19.2"] click-version: ["8.1.0", "8.2.0"] exclude: @@ -26,7 +26,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/examples_check.yml b/.github/workflows/examples_check.yml index d0baa49dd..15663a9be 100644 --- a/.github/workflows/examples_check.yml +++ b/.github/workflows/examples_check.yml @@ -34,9 +34,9 @@ jobs: echo 'id="SYSTEM TESTING"' > ~/.guardrailsrc echo 'no_metrics=false' >> ~/.guardrailsrc - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: - python-version: 3.13.x + python-version: 3.14.x - name: Install dependencies run: | diff --git a/.github/workflows/install_from_hub.yml b/.github/workflows/install_from_hub.yml index d9aa922f5..c6e814e7e 100644 --- a/.github/workflows/install_from_hub.yml +++ b/.github/workflows/install_from_hub.yml @@ -13,11 +13,11 @@ jobs: GUARDRAILS_API_KEY: ${{ secrets.GUARDRAILS_API_KEY }} steps: - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: - python-version: 3.13.x + python-version: 3.14.x - name: pip install from main - run: pip install git+https://github.com/guardrails-ai/guardrails.git@main + run: pip install git+https://github.com/guardrails-ai/guardrails.git@py-3.14 - name: Install PII validator run: | guardrails configure --token $GUARDRAILS_API_KEY --disable-metrics --enable-remote-inferencing; diff --git a/.github/workflows/release_version.yml b/.github/workflows/release_version.yml index 9fce5a6f6..3b9dc145f 100644 --- a/.github/workflows/release_version.yml +++ b/.github/workflows/release_version.yml @@ -12,9 +12,9 @@ jobs: uses: actions/checkout@v2 - name: Setup Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: - python-version: 3.13.x + python-version: 3.14.x - name: Poetry cache uses: actions/cache@v3 diff --git a/server_ci/Dockerfile.fastapi b/server_ci/Dockerfile.fastapi index 4db17f542..c6b8bb86c 100644 --- a/server_ci/Dockerfile.fastapi +++ b/server_ci/Dockerfile.fastapi @@ -1,5 +1,5 @@ # New LiteLLM version has a dependency on madoka which requires g++ to build the wheel -FROM python:3.13 +FROM python:3.14 ARG GUARDRAILS_TOKEN ARG GUARDRAILS_TEMPLATE="guard-template.json"