Skip to content

Commit d4107ea

Browse files
authored
ci: show the longest tests for improvement (#2083)
1 parent caadfb7 commit d4107ea

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.azure/gpu-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
python -c "from torch import __version__ as ver ; assert str(ver).split('+')[0] == '$(TORCH_VERSION)', f'PyTorch: installed {ver} but expected $(TORCH_VERSION)'"
8383
displayName: "Env details"
8484
85-
- bash: pytest -v
85+
- bash: pytest -v --durations=100
8686
displayName: "All tests"
8787
timeoutInMinutes: "15"
8888

@@ -106,7 +106,7 @@ jobs:
106106
107107
- bash: |
108108
# without env var, it filters out all tests
109-
PL_RUN_CUDA_TESTS=0 pytest tests/ext_thunder/test_thunder_networks.py -v
109+
PL_RUN_CUDA_TESTS=0 pytest tests/ext_thunder/test_thunder_networks.py -v --durations=50
110110
displayName: "Extra tests for Thunder [main branch]"
111111
condition: eq(variables['dependency'], 'compiler')
112112
env:

.github/workflows/cpu-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
include:
8383
- { os: "macOS-14", python-version: "3.9" }
8484
- { os: "windows-2022", python-version: "3.9" }
85-
timeout-minutes: 25
85+
timeout-minutes: 35
8686
steps:
8787
- name: Checkout generic
8888
uses: actions/checkout@v4
@@ -118,7 +118,7 @@ jobs:
118118
- name: Run tests
119119
env:
120120
HF_TOKEN: ${{ secrets.HF_TOKEN }}
121-
run: pytest -v litgpt/ tests/ --timeout 180
121+
run: pytest -v litgpt/ tests/ --timeout=180 --durations=100
122122

123123
- name: Show cache
124124
run: |

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ classifiers = [
2626
]
2727
dependencies = [
2828
# download models:
29-
"huggingface-hub>=0.23.5",
29+
"huggingface-hub>=0.23.5,<0.33",
3030
"jsonargparse[signatures]>=4.30.1,<=4.32.1; python_version<='3.9'", # 4.33 does not seem to be compatible with Python 3.9
3131
"jsonargparse[signatures]>=4.37; python_version>'3.9'", # required to work with python3.12+
3232
"lightning>=2.5",

0 commit comments

Comments
 (0)