|
58 | 58 | jobs: |
59 | 59 | beam_PreCommit_Python_ML: |
60 | 60 | name: ${{ matrix.job_name }} (${{ matrix.job_phrase }} ${{ matrix.python_version }}) |
61 | | - runs-on: ${{ matrix.os }} |
| 61 | + runs-on: [self-hosted, ubuntu-20.04, main] |
62 | 62 | timeout-minutes: 180 |
63 | 63 | strategy: |
64 | 64 | fail-fast: false |
65 | 65 | matrix: |
66 | 66 | job_name: ['beam_PreCommit_Python_ML'] |
67 | 67 | job_phrase: ['Run Python_ML PreCommit'] |
68 | 68 | python_version: ['3.9','3.10','3.11','3.12'] |
69 | | - # Run on both self-hosted and GitHub-hosted runners. |
70 | | - # Some tests (marked require_docker_in_docker) can't run on Beam's |
71 | | - # self-hosted runners due to Docker-in-Docker environment constraint. |
72 | | - # These tests will only execute on ubuntu-latest (GitHub-hosted). |
73 | | - # Context: https://github.com/apache/beam/pull/35585 |
74 | | - os: [[self-hosted, ubuntu-20.04, main], [ubuntu-latest]] |
75 | 69 | if: | |
76 | 70 | github.event_name == 'push' || |
77 | 71 | github.event_name == 'pull_request_target' || |
@@ -102,11 +96,7 @@ jobs: |
102 | 96 | with: |
103 | 97 | 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 |
104 | 98 | arguments: | |
105 | | - -Pposargs="${{ |
106 | | - contains(matrix.os, 'self-hosted') && |
107 | | - 'apache_beam/ml/ -m ''not require_docker_in_docker''' || |
108 | | - 'apache_beam/ml/ -m ''require_docker_in_docker''' |
109 | | - }}" \ |
| 99 | + -Pposargs=apache_beam/ml/ \ |
110 | 100 | -PpythonVersion=${{ matrix.python_version }} |
111 | 101 | - name: Archive Python Test Results |
112 | 102 | uses: actions/upload-artifact@v4 |
|
0 commit comments