Skip to content

Commit d76af84

Browse files
Trigger the slow tests on ci branches and narrow them to the VLM test
1 parent 5bd7905 commit d76af84

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

.github/workflows/slow-tests.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ name: Slow tests (on push)
22

33
on:
44
push:
5-
branches: [main]
6-
paths:
7-
# Run only when python files are modified
8-
- "trl/**.py"
9-
- "examples/**.py"
5+
branches:
6+
- main
7+
- ci-*
8+
# paths:
9+
# # Run only when python files are modified
10+
# - "trl/**.py"
11+
# - "examples/**.py"
1012
env:
1113
CI_SLACK_CHANNEL: ${{ secrets.CI_PUSH_MAIN_CHANNEL }}
1214
HF_TOKEN: ${{ secrets.HF_TOKEN }}
@@ -54,7 +56,7 @@ jobs:
5456
- name: Run slow tests on single GPU
5557
run: |
5658
source .venv/bin/activate
57-
make slow_tests PYTEST_ARGS="--report-log=slow_tests.log"
59+
make slow_tests PYTEST_ARGS="-k test_vlm_training --report-log=slow_tests.log"
5860
5961
- name: Generate Report
6062
if: always()
@@ -112,7 +114,7 @@ jobs:
112114
- name: Run slow tests on Multi GPU
113115
run: |
114116
source .venv/bin/activate
115-
make slow_tests PYTEST_ARGS="--report-log=slow_tests.log"
117+
make slow_tests PYTEST_ARGS="-k test_vlm_training --report-log=slow_tests.log"
116118
117119
- name: Generate Reports
118120
if: always()

0 commit comments

Comments
 (0)