File tree Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -75,15 +75,25 @@ jobs:
75
75
displayName: "Env details"
76
76
77
77
- bash : |
78
- pytest -v --disable-pytest-warnings --strict-markers --color=yes \
78
+ pytest -v \
79
79
--ignore-glob="tests/test_thunder*" \
80
80
--ignore="tests/test_unsloth_executor.py"
81
81
displayName: "Ordinary tests"
82
82
condition: ne(variables['dependency'], 'compiler')
83
83
timeoutInMinutes: "5"
84
84
85
85
- bash : |
86
- pytest -v --disable-pytest-warnings --strict-markers --color=yes
86
+ # install thunder from source, so that, thunder.tests will be available
87
+ pip install -U "thunder[test] @ git+https://github.com/Lightning-AI/lightning-thunder.git"
88
+ PL_RUN_CUDA_TESTS=0 pytest tests/ext_thunder/test_thunder_networks.py -v # without env var, it filters out all tests
89
+ displayName: "Extra tests w. Thunder [main branch]"
90
+ condition: eq(variables['dependency'], 'compiler')
91
+ env:
92
+ PL_RUN_CUDA_TESTS: "0"
93
+ timeoutInMinutes: "10"
94
+
95
+ - bash : |
96
+ pytest -v
87
97
displayName: "All tests"
88
98
condition: eq(variables['dependency'], 'compiler')
89
99
timeoutInMinutes: "5"
Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ optional-dependencies.test = [
75
75
" einops>=0.7" ,
76
76
" protobuf>=4.23.4" ,
77
77
" pytest>=8.1.1" ,
78
+ " pytest-benchmark>=5.1" ,
78
79
" pytest-dependency>=0.6" ,
79
80
" pytest-rerunfailures>=14" ,
80
81
" pytest-timeout>=2.3.1" ,
Original file line number Diff line number Diff line change
1
+ """Run thunder tests as part of LitGPT CI"""
2
+
3
+ from litgpt .utils import _THUNDER_AVAILABLE
4
+
5
+ if _THUNDER_AVAILABLE :
6
+ from thunder .tests .test_networks import * # noqa: F403
7
+ else :
8
+ print ("Skipping test_thunder_networks.py (thunder not available)" )
You can’t perform that action at this time.
0 commit comments