|
15 | 15 |
|
16 | 16 | name: PreCommit Python ML tests with ML deps installed |
17 | 17 | on: |
18 | | - pull_request_target: |
| 18 | + pull_request: |
19 | 19 | branches: [ "master", "release-*" ] |
20 | 20 | paths: [ "model/**","sdks/python/**","release/**", 'release/trigger_all_tests.json', '.github/trigger_files/beam_PreCommit_Python_ML.json'] |
21 | 21 | issue_comment: |
|
57 | 57 |
|
58 | 58 | jobs: |
59 | 59 | beam_PreCommit_Python_ML: |
60 | | - name: ${{ matrix.job_name }} (${{ matrix.job_phrase }} ${{ matrix.python_version }}) [${{ matrix.os }}] |
| 60 | + name: 'beam_PreCommit_Python_ML' |
61 | 61 | runs-on: ${{ matrix.os }} |
62 | 62 | timeout-minutes: 180 |
63 | 63 | strategy: |
64 | 64 | fail-fast: false |
65 | 65 | matrix: |
66 | | - job_name: ['beam_PreCommit_Python_ML'] |
67 | 66 | job_phrase: ['Run Python_ML PreCommit'] |
68 | 67 | python_version: ['3.9','3.10','3.11','3.12'] |
69 | 68 | # Run on both self-hosted and GitHub-hosted runners. |
70 | 69 | # Some tests (marked require_docker_in_docker) can't run on Beam's |
71 | 70 | # self-hosted runners due to Docker-in-Docker environment constraint. |
72 | 71 | # These tests will only execute on ubuntu-latest (GitHub-hosted). |
73 | | - # Context: https://github.com/apache/beam/pull/35585 |
74 | | - # Temporary removed the ubuntu-latest env till resolving deps issues. |
| 72 | + # Context: https://github.com/apache/beam/pull/35585. |
75 | 73 | os: [[self-hosted, ubuntu-20.04, main], [ubuntu-latest]] |
76 | | - if: | |
77 | | - github.event_name == 'push' || |
78 | | - github.event_name == 'pull_request_target' || |
79 | | - (github.event_name == 'schedule' && github.repository == 'apache/beam') || |
80 | | - github.event_name == 'workflow_dispatch' || |
81 | | - startsWith(github.event.comment.body, 'Run Python_ML PreCommit') |
| 74 | + # if: | |
| 75 | + # github.event_name == 'push' || |
| 76 | + # github.event_name == 'pull_request_target' || |
| 77 | + # (github.event_name == 'schedule' && github.repository == 'apache/beam') || |
| 78 | + # github.event_name == 'workflow_dispatch' || |
| 79 | + # startsWith(github.event.comment.body, 'Run Python_ML PreCommit') |
82 | 80 | steps: |
83 | 81 | - uses: actions/checkout@v4 |
84 | 82 | - name: Setup repository |
|
0 commit comments