Skip to content

Commit 379e3e6

Browse files
jmesnilclaude
andcommitted
fix: restore UV_SYSTEM_PYTHON env var in TCK workflow
The uv pip install command fails without a virtual environment unless UV_SYSTEM_PYTHON=1 is set to allow system-wide installation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2eea6cd commit 379e3e6

1 file changed

Lines changed: 16 additions & 14 deletions

File tree

.github/workflows/run-tck.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ on:
1313
env:
1414
# Tag/branch of the TCK
1515
TCK_VERSION: 1.0-dev
16+
# Tells uv to not need a venv, and instead use system
17+
UV_SYSTEM_PYTHON: 1
1618
SUT_URL: http://localhost:9999
1719

1820
# Only run the latest job
@@ -29,18 +31,26 @@ jobs:
2931
steps:
3032
- name: Checkout a2a-java
3133
uses: actions/checkout@v6
32-
- name: Checkout a2a-tck
33-
uses: actions/checkout@v6
34-
with:
35-
repository: a2aproject/a2a-tck
36-
path: a2a-tck
37-
ref: ${{ env.TCK_VERSION }}
3834
- name: Set up JDK ${{ matrix.java-version }}
3935
uses: actions/setup-java@v5
4036
with:
4137
java-version: ${{ matrix.java-version }}
4238
distribution: 'temurin'
4339
cache: maven
40+
- name: Build a2a-java SDK
41+
run: mvn -B install -DskipTests
42+
- name: Extract a2a-java version
43+
id: extract-version
44+
run: |
45+
A2A_JAVA_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
46+
echo "version=$A2A_JAVA_VERSION" >> $GITHUB_OUTPUT
47+
echo "Detected a2a-java version: $A2A_JAVA_VERSION"
48+
- name: Checkout a2a-tck
49+
uses: actions/checkout@v6
50+
with:
51+
repository: a2aproject/a2a-tck
52+
path: a2a-tck
53+
ref: ${{ env.TCK_VERSION }}
4454
- name: Set up Python
4555
uses: actions/setup-python@v5
4656
with:
@@ -50,14 +60,6 @@ jobs:
5060
pip install uv
5161
uv pip install -e .
5262
working-directory: a2a-tck
53-
- name: Build a2a-java SDK
54-
run: mvn -B install -DskipTests
55-
- name: Extract a2a-java version
56-
id: extract-version
57-
run: |
58-
A2A_JAVA_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
59-
echo "version=$A2A_JAVA_VERSION" >> $GITHUB_OUTPUT
60-
echo "Detected a2a-java version: $A2A_JAVA_VERSION"
6163
- name: Generate a2a-java SUT
6264
run: A2A_JAVA_SDK_VERSION=${{ steps.extract-version.outputs.version }} make codegen-a2a-java-sut
6365
working-directory: a2a-tck

0 commit comments

Comments
 (0)