Skip to content

Commit bf16bd7

Browse files
authored
Merge branch 'master' into patch-2
2 parents 65d2624 + 03635d2 commit bf16bd7

File tree

20 files changed

+37
-31
lines changed

20 files changed

+37
-31
lines changed

.github/workflows/call-clear-cache.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@ on:
2323
jobs:
2424
cron-clear:
2525
if: github.event_name == 'schedule' || github.event_name == 'pull_request'
26-
uses: Lightning-AI/utilities/.github/workflows/[email protected].1
26+
uses: Lightning-AI/utilities/.github/workflows/[email protected].3
2727
with:
28-
scripts-ref: v0.14.1
28+
scripts-ref: v0.14.3
2929
dry-run: ${{ github.event_name == 'pull_request' }}
3030
pattern: "latest|docs"
3131
age-days: 7
3232

3333
direct-clear:
3434
if: github.event_name == 'workflow_dispatch' || github.event_name == 'pull_request'
35-
uses: Lightning-AI/utilities/.github/workflows/[email protected].1
35+
uses: Lightning-AI/utilities/.github/workflows/[email protected].3
3636
with:
37-
scripts-ref: v0.14.1
37+
scripts-ref: v0.14.3
3838
dry-run: ${{ github.event_name == 'pull_request' }}
3939
pattern: ${{ inputs.pattern || 'pypi_wheels' }} # setting str in case of PR / debugging
4040
age-days: ${{ fromJSON(inputs.age-days) || 0 }} # setting 0 in case of PR / debugging

.github/workflows/ci-check-md-links.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414

1515
jobs:
1616
check-md-links:
17-
uses: Lightning-AI/utilities/.github/workflows/[email protected].1
17+
uses: Lightning-AI/utilities/.github/workflows/[email protected].3
1818
with:
1919
config-file: ".github/markdown-links-config.json"
2020
base-branch: "master"

.github/workflows/ci-schema.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
check:
11-
uses: Lightning-AI/utilities/.github/workflows/[email protected].1
11+
uses: Lightning-AI/utilities/.github/workflows/[email protected].3
1212
with:
1313
# skip azure due to the wrong schema file by MSFT
1414
# https://github.com/Lightning-AI/lightning-flash/pull/1455#issuecomment-1244793607

.github/workflows/ci-tests-fabric.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ jobs:
159159
run: |
160160
echo $GITHUB_RUN_ID
161161
python -m coverage run --source ${{ env.COVERAGE_SCOPE }} \
162-
-m pytest -v --timeout=30 --durations=50 --random-order-seed=$GITHUB_RUN_ID
162+
-m pytest -v --timeout=30 --durations=50 --random-order-seed=$GITHUB_RUN_ID \
163+
--junitxml=junit.xml -o junit_family=legacy # NOTE: for Codecov's test results
163164
164165
- name: Statistics
165166
if: success()

.github/workflows/ci-tests-pytorch.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,8 @@ jobs:
196196
run: |
197197
echo $GITHUB_RUN_ID
198198
python -m coverage run --source ${{ env.COVERAGE_SCOPE }} \
199-
-m pytest . -v --timeout=60 --durations=50 --random-order-seed=$GITHUB_RUN_ID
199+
-m pytest . -v --timeout=60 --durations=50 --random-order-seed=$GITHUB_RUN_ID \
200+
--junitxml=junit.xml -o junit_family=legacy # NOTE: for Codecov's test results
200201
201202
- name: Statistics
202203
if: success()
@@ -205,6 +206,12 @@ jobs:
205206
coverage report
206207
coverage xml
207208
209+
- name: Upload test results to Codecov
210+
if: ${{ !cancelled() }} # Run even if tests fail
211+
uses: codecov/test-results-action@v1
212+
with:
213+
token: ${{ secrets.CODECOV_TOKEN }}
214+
208215
- name: Upload coverage to Codecov
209216
uses: codecov/codecov-action@v5
210217
# see: https://github.com/actions/toolkit/issues/399

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ repos:
5151
- id: detect-private-key
5252

5353
- repo: https://github.com/codespell-project/codespell
54-
rev: v2.3.0
54+
rev: v2.4.1
5555
hooks:
5656
- id: codespell
5757
additional_dependencies: [tomli]
@@ -70,7 +70,7 @@ repos:
7070
- id: sphinx-lint
7171

7272
- repo: https://github.com/astral-sh/ruff-pre-commit
73-
rev: v0.8.6
73+
rev: v0.11.4
7474
hooks:
7575
# try to fix what is possible
7676
- id: ruff
@@ -81,7 +81,7 @@ repos:
8181
- id: ruff
8282

8383
- repo: https://github.com/executablebooks/mdformat
84-
rev: 0.7.21
84+
rev: 0.7.22
8585
hooks:
8686
- id: mdformat
8787
additional_dependencies:

_notebooks

docs/source-pytorch/debug/debugging_basic.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ A breakpoint stops your code execution so you can inspect variables, etc... and
3333
x = 2
3434
3535
# set breakpoint
36-
import pdb
37-
38-
pdb.set_trace()
36+
breakpoint()
3937
y = x**2
4038
4139
In this example, the code will stop before executing the ``y = x**2`` line.

requirements/fabric/test.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@ pytest-rerunfailures ==12.0
77
pytest-random-order ==1.1.0
88
click ==8.1.7
99
tensorboardX >=2.2, <2.7.0 # min version is set by torch.onnx missing attribute
10-
torchmetrics >=0.7.0, <1.5.0 # needed for using fixed compare_version

requirements/pytorch/base.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ torch >=2.1.0, <2.6.0
55
tqdm >=4.57.0, <4.67.0
66
PyYAML >=5.4, <6.1.0
77
fsspec[http] >=2022.5.0, <2024.4.0
8-
torchmetrics >=0.7.0, <1.5.0 # needed for using fixed compare_version
8+
torchmetrics >=0.7.0, <1.5.0
99
packaging >=20.0, <=23.1
1010
typing-extensions >=4.4.0, <4.11.0
1111
lightning-utilities >=0.10.0, <0.12.0

0 commit comments

Comments
 (0)