Skip to content

Commit 48c4bb0

Browse files
workflows: update require_docker_in_docker in Pposargs
1 parent ecfbc24 commit 48c4bb0

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/beam_PostCommit_Python.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ jobs:
9999
arguments: |
100100
-Pjava21Home=$JAVA_HOME_21_X64 \
101101
-PuseWheelDistribution \
102+
-Pposargs="${{
103+
contains(matrix.os, 'self-hosted') &&
104+
'-m ''not require_docker_in_docker''' ||
105+
'-m ''require_docker_in_docker'''
106+
}}" \
102107
-PpythonVersion=${{ matrix.python_version }} \
103108
env:
104109
CLOUDSDK_CONFIG: ${{ env.KUBELET_GCLOUD_CONFIG_PATH}}

.github/workflows/beam_PreCommit_Python_ML.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,11 @@ jobs:
9696
with:
9797
gradle-command: :sdks:python:test-suites:tox:py${{steps.set_py_ver_clean.outputs.py_ver_clean}}:testPy${{steps.set_py_ver_clean.outputs.py_ver_clean}}ML
9898
arguments: |
99-
-Pposargs=apache_beam/ml/ \
99+
-Pposargs="${{
100+
contains(matrix.os, 'self-hosted') &&
101+
'apache_beam/ml/ -m ''not require_docker_in_docker''' ||
102+
'apache_beam/ml/ -m ''require_docker_in_docker'''
103+
}}" \
100104
-PpythonVersion=${{ matrix.python_version }}
101105
- name: Archive Python Test Results
102106
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)