|
38 | 38 | fuzz: ${{ steps.check_fuzzer.outputs.changed }} |
39 | 39 | # Flag that is set to "true" when code related to ty changes. |
40 | 40 | ty: ${{ steps.check_ty.outputs.changed }} |
41 | | - |
| 41 | + # Flag that is set to "true" when code related to the py-fuzzer folder changes. |
| 42 | + py-fuzzer: ${{ steps.check_py_fuzzer.outputs.changed }} |
42 | 43 | # Flag that is set to "true" when code related to the playground changes. |
43 | 44 | playground: ${{ steps.check_playground.outputs.changed }} |
44 | 45 | steps: |
|
68 | 69 | ':crates/ruff_text_size/**' \ |
69 | 70 | ':crates/ruff_python_ast/**' \ |
70 | 71 | ':crates/ruff_python_parser/**' \ |
71 | | - ':python/py-fuzzer/**' \ |
72 | 72 | ':.github/workflows/ci.yaml' \ |
73 | 73 | ; then |
74 | 74 | echo "changed=false" >> "$GITHUB_OUTPUT" |
@@ -138,6 +138,18 @@ jobs: |
138 | 138 | echo "changed=true" >> "$GITHUB_OUTPUT" |
139 | 139 | fi |
140 | 140 |
|
| 141 | + - name: Check if the py-fuzzer code changed |
| 142 | + id: check_py_fuzzer |
| 143 | + env: |
| 144 | + MERGE_BASE: ${{ steps.merge_base.outputs.sha }} |
| 145 | + run: | |
| 146 | + if git diff --quiet "${MERGE_BASE}...HEAD" -- 'python/py_fuzzer/**' \ |
| 147 | + ; then |
| 148 | + echo "changed=false" >> "$GITHUB_OUTPUT" |
| 149 | + else |
| 150 | + echo "changed=true" >> "$GITHUB_OUTPUT" |
| 151 | + fi |
| 152 | +
|
141 | 153 | - name: Check if there was any code related change |
142 | 154 | id: check_code |
143 | 155 | env: |
@@ -443,7 +455,7 @@ jobs: |
443 | 455 | needs: |
444 | 456 | - cargo-test-linux |
445 | 457 | - determine_changes |
446 | | - if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-test') && needs.determine_changes.outputs.parser == 'true' }} |
| 458 | + if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-test') && (needs.determine_changes.outputs.parser == 'true' || needs.determine_changes.outputs.py-fuzzer == 'true') }} |
447 | 459 | timeout-minutes: 20 |
448 | 460 | env: |
449 | 461 | FORCE_COLOR: 1 |
@@ -633,7 +645,7 @@ jobs: |
633 | 645 | - cargo-test-linux |
634 | 646 | - determine_changes |
635 | 647 | # Only runs on pull requests, since that is the only we way we can find the base version for comparison. |
636 | | - if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-test') && github.event_name == 'pull_request' && needs.determine_changes.outputs.ty == 'true' }} |
| 648 | + if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-test') && github.event_name == 'pull_request' && (needs.determine_changes.outputs.ty == 'true' || needs.determine_changes.outputs.py-fuzzer == 'true') }} |
637 | 649 | timeout-minutes: 20 |
638 | 650 | steps: |
639 | 651 | - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
|
0 commit comments