|
1 | 1 | # If you change this name also do it in ci_metrics.yml
|
2 | 2 | name: Slow Integration Tests
|
3 | 3 |
|
4 |
| -# This workflow always runs to satisfy Branch Protection rules. |
5 |
| -# The tests will run when: |
| 4 | +# The workflow will always run, but the actual tests will only execute when: |
6 | 5 | # - The workflow is triggered manually
|
7 | 6 | # - The workflow is scheduled
|
8 | 7 | # - The PR has the "run-slow-tests" label
|
9 | 8 | # - The push is to a release branch
|
10 |
| -# - There are changes to relevant files |
11 |
| -# If tests are skipped, the "Slow Integration Tests completed" job (required by Branch Protection rules) succeeds. |
| 9 | +# - There are changes to relevant files. |
| 10 | +# Note: If no conditions are met, the workflow will complete successfully without running tests |
| 11 | +# to satisfy Branch Protection rules. |
12 | 12 |
|
13 | 13 | env:
|
14 | 14 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
41 | 41 | permissions:
|
42 | 42 | pull-requests: read
|
43 | 43 | outputs:
|
44 |
| - code_changes: ${{ steps.changes.outputs.code_changes }} |
| 44 | + changes: ${{ steps.changes.outputs.changes }} |
45 | 45 | steps:
|
46 | 46 | - uses: actions/checkout@v4
|
47 | 47 | - name: Check for changed code
|
|
50 | 50 | with:
|
51 | 51 | # List of Python files that trigger slow integration tests when modified
|
52 | 52 | filters: |
|
53 |
| - code_changes: |
| 53 | + changes: |
54 | 54 | - "haystack/components/audio/whisper_local.py"
|
55 | 55 | - "haystack/components/converters/tika.py"
|
56 | 56 | - "test/components/converters/test_tika_doc_converter.py"
|
|
66 | 66 | github.event_name == 'schedule' ||
|
67 | 67 | (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'run-slow-tests')) ||
|
68 | 68 | (github.event_name == 'push' && github.ref == 'refs/heads/v[0-9].*[0-9].x') ||
|
69 |
| - (needs.check-if-changed.outputs.code_changes == 'true') |
| 69 | + (needs.check-if-changed.outputs.changes == 'true') |
70 | 70 |
|
71 | 71 | strategy:
|
72 | 72 | matrix:
|
|
0 commit comments