Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 15 additions & 11 deletions .github/workflows/python-sdk-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ jobs:
working-directory: ./python
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: "3.11"
- name: Set up uv
- name: Set up uv and Python
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
with:
python-version: "3.11"
activate-environment: true
working-directory: python
enable-cache: true
cache-python: true
cache-suffix: validate
- name: Install Python dev dependencies
run: uv sync --all-extras --dev
- name: Run ruff format check
Expand All @@ -39,16 +41,16 @@ jobs:
run: uv run ty check copilot

test:
name: "Python SDK Tests (${{ matrix.os }}, ${{ matrix.transport }})"
name: "Python SDK Tests (Python ${{ matrix.python-version }}, ${{ matrix.os }}, ${{ matrix.transport }})"
if: github.event.repository.fork == false
env:
POWERSHELL_UPDATECHECK: Off
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
# Test the oldest supported Python version to make sure compatibility is maintained.
python-version: ["3.11"]
# Test the oldest and newest supported Python versions.
python-version: ["3.11", "3.15"]
transport: ["default", "inprocess"]
runs-on: ${{ matrix.os }}
timeout-minutes: 20
Expand All @@ -58,19 +60,21 @@ jobs:
working-directory: ./python
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: ${{ matrix.python-version }}
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
with:
node-version: "22"
cache: "npm"
cache-dependency-path: "./nodejs/package-lock.json"

- name: Set up uv
- name: Set up uv and Python
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
with:
python-version: ${{ matrix.python-version }}
activate-environment: true
working-directory: python
enable-cache: true
cache-python: true
cache-suffix: ${{ matrix.transport }}

- name: Install Python dev dependencies
run: uv sync --all-extras --dev
Expand Down
1 change: 1 addition & 0 deletions python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ classifiers = [
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
]
dependencies = [
"python-dateutil>=2.9.0.post0",
Expand Down
Loading