Skip to content

Commit 25a7d5d

Browse files
authored
Merge branch 'master' into feat/device-stats-monitor-non-expert-mode
2 parents 836912e + 932b7e3 commit 25a7d5d

19 files changed

Lines changed: 227 additions & 111 deletions

.github/checkgroup.yml

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -130,40 +130,40 @@ subprojects:
130130
checks:
131131
- "fabric-cpu-guardian" # aggregated check for all cases
132132

133-
- id: "lightning_fabric: lit GPU"
134-
paths:
135-
- ".actions/*"
136-
- ".lightning/workflows/fabric.yml"
137-
- "examples/fabric/**"
138-
- "examples/run_fabric_examples.sh"
139-
- "requirements/fabric/**"
140-
- "src/lightning/__init__.py"
141-
- "src/lightning/__setup__.py"
142-
- "src/lightning/__version__.py"
143-
- "src/lightning/fabric/**"
144-
- "src/lightning_fabric/*"
145-
- "tests/tests_fabric/**"
146-
- "tests/run_standalone_*.sh"
147-
- "pyproject.toml" # includes pytest config
148-
- "!requirements/*/docs.txt"
149-
- "!*.md"
150-
- "!**/*.md"
151-
checks:
152-
- "fabric.yml / Lit Job (nvidia/cuda:12.1.1-devel-ubuntu22.04, fabric, 3.10)"
153-
- "fabric.yml / Lit Job (fabric, 3.12)"
154-
- "fabric.yml / Lit Job (lightning, 3.12)"
155-
156-
# Temporarily disabled
157-
# - id: "lightning_fabric: TPU workflow"
158-
# paths:
159-
# # tpu CI availability is very limited, so we only require tpu tests
160-
# # to pass when their configurations are modified
161-
# - ".github/workflows/tpu-tests.yml.disabled"
162-
# - "tests/tests_fabric/run_tpu_tests.sh"
163-
# checks:
164-
# - "test-on-tpus (pytorch, pjrt, v4-8)"
165-
166-
# SECTION: common
133+
# - id: "lightning_fabric: lit GPU"
134+
# paths:
135+
# - ".actions/*"
136+
# - ".lightning/workflows/fabric.yml"
137+
# - "examples/fabric/**"
138+
# - "examples/run_fabric_examples.sh"
139+
# - "requirements/fabric/**"
140+
# - "src/lightning/__init__.py"
141+
# - "src/lightning/__setup__.py"
142+
# - "src/lightning/__version__.py"
143+
# - "src/lightning/fabric/**"
144+
# - "src/lightning_fabric/*"
145+
# - "tests/tests_fabric/**"
146+
# - "tests/run_standalone_*.sh"
147+
# - "pyproject.toml" # includes pytest config
148+
# - "!requirements/*/docs.txt"
149+
# - "!*.md"
150+
# - "!**/*.md"
151+
# checks:
152+
# - "fabric.yml / Lit Job (nvidia/cuda:12.1.1-devel-ubuntu22.04, fabric, 3.10)"
153+
# - "fabric.yml / Lit Job (fabric, 3.12)"
154+
# - "fabric.yml / Lit Job (lightning, 3.12)"
155+
#
156+
# # Temporarily disabled
157+
# # - id: "lightning_fabric: TPU workflow"
158+
# # paths:
159+
# # # tpu CI availability is very limited, so we only require tpu tests
160+
# # # to pass when their configurations are modified
161+
# # - ".github/workflows/tpu-tests.yml.disabled"
162+
# # - "tests/tests_fabric/run_tpu_tests.sh"
163+
# # checks:
164+
# # - "test-on-tpus (pytorch, pjrt, v4-8)"
165+
#
166+
# # SECTION: common
167167

168168
- id: "mypy"
169169
paths:

.github/workflows/_build-packages.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ jobs:
2525
matrix:
2626
pkg-name: ${{ fromJSON(inputs.pkg-names) }}
2727
steps:
28-
- uses: actions/checkout@v6
29-
- uses: actions/setup-python@v6
28+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
29+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
3030
with:
3131
python-version: "3.x"
3232

@@ -41,7 +41,7 @@ jobs:
4141
mkdir -p pypi/${{ matrix.pkg-name }}
4242
cp dist/* pypi/${{ matrix.pkg-name }}/
4343
44-
- uses: actions/upload-artifact@v7
44+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
4545
with:
4646
name: ${{ inputs.artifact-name }}-${{ matrix.pkg-name }}
4747
path: pypi
@@ -51,7 +51,7 @@ jobs:
5151
needs: build-packages
5252
runs-on: ubuntu-22.04
5353
steps:
54-
- uses: actions/download-artifact@v8
54+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
5555
with: # download all build artifacts
5656
pattern: ${{ inputs.artifact-name }}-*
5757
merge-multiple: true
@@ -62,7 +62,7 @@ jobs:
6262
6363
- name: Keep artifact
6464
run: python -c "print('DAYS=' + str(5 if '${{ github.event_name }}'.startswith('pull_request') else 0))" >> $GITHUB_ENV
65-
- uses: actions/upload-artifact@v7
65+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
6666
with:
6767
name: ${{ inputs.artifact-name }}
6868
path: pypi

.github/workflows/_legacy-checkpoints.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ jobs:
5757
outputs:
5858
pl-version: ${{ steps.decide-version.outputs.pl-version }}
5959
steps:
60-
- uses: actions/checkout@v6
60+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6161

6262
- name: Install uv and set Python version
63-
uses: astral-sh/setup-uv@v7
63+
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
6464
with:
6565
python-version: "3.10"
6666
# TODO: Avoid activating environment like this
@@ -113,7 +113,7 @@ jobs:
113113
python -c "print('AWS_RUN=' + str('' if '${{inputs.push_to_s3}}' == 'true' else '--dryrun'))" >> $GITHUB_ENV
114114
115115
- name: Upload checkpoints to GitHub Actions artifact
116-
uses: actions/upload-artifact@v7
116+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
117117
with:
118118
name: checkpoints-${{ github.sha }}
119119
path: ${{ env.LEGACY_FOLDER }}/checkpoints/
@@ -144,7 +144,7 @@ jobs:
144144
env:
145145
PL_VERSION: ${{ needs.create-legacy-ckpts.outputs.pl-version }}
146146
steps:
147-
- uses: actions/checkout@v6
147+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
148148
with:
149149
ref: master
150150

@@ -153,7 +153,7 @@ jobs:
153153
run: echo ${PL_VERSION} >> back-compatible-versions.txt
154154

155155
- name: Create Pull Request
156-
uses: peter-evans/create-pull-request@v8
156+
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
157157
with:
158158
title: Adding test for legacy checkpoint created with ${{ env.PL_VERSION }}
159159
committer: GitHub <noreply@github.com>

.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/check-md-links.yml@main # can be pin with >=0.14.4
17+
uses: Lightning-AI/utilities/.github/workflows/check-md-links.yml@86fe1b20b4609835ba9e8c8739cd39707ba76868 # v0.15.3
1818
with:
1919
config-file: ".github/markdown-links-config.json"
2020
base-branch: "master"

.github/workflows/ci-pkg-install.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ jobs:
4949
# Supply-chain guard: skip PyPI releases newer than this (ISO 8601 duration). See https://pip.pypa.io/en/stable/cli/pip_install/#cmdoption-uploaded-prior-to
5050
PIP_UPLOADED_PRIOR_TO: "P2D"
5151
steps:
52-
- uses: actions/checkout@v6
53-
- uses: actions/setup-python@v6
52+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
53+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
5454
with:
5555
python-version: ${{ matrix.python-version }}
5656
- name: Upgrade pip (for --uploaded-prior-to, pip >= 26.1)
5757
run: python -m pip install --upgrade "pip>=26.1"
58-
- uses: actions/download-artifact@v8
58+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
5959
with:
6060
name: dist-packages-${{ github.sha }}
6161
path: dist

.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/check-schema.yml@v0.15.3
11+
uses: Lightning-AI/utilities/.github/workflows/check-schema.yml@86fe1b20b4609835ba9e8c8739cd39707ba76868 # v0.15.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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ jobs:
7171
# Supply-chain guard: skip PyPI releases newer than this. See https://docs.astral.sh/uv/reference/settings/#exclude-newer
7272
UV_EXCLUDE_NEWER: "2 days"
7373
steps:
74-
- uses: actions/checkout@v6
74+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7575

7676
- name: Install uv and set Python version
77-
uses: astral-sh/setup-uv@v7
77+
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
7878
with:
7979
python-version: ${{ matrix.config.python-version || '3.10' }}
8080
# TODO: Avoid activating environment like this
@@ -167,7 +167,7 @@ jobs:
167167
coverage xml
168168
169169
- name: Upload coverage to Codecov
170-
uses: codecov/codecov-action@v6
170+
uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1
171171
# see: https://github.com/actions/toolkit/issues/399
172172
continue-on-error: true
173173
with:

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ jobs:
7676
# Supply-chain guard: skip PyPI releases newer than this. See https://docs.astral.sh/uv/reference/settings/#exclude-newer
7777
UV_EXCLUDE_NEWER: "2 days"
7878
steps:
79-
- uses: actions/checkout@v6
79+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
8080

8181
- name: Install uv and set Python version
82-
uses: astral-sh/setup-uv@v7
82+
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
8383
with:
8484
python-version: ${{ matrix.config.python-version || '3.10' }}
8585
# TODO: Avoid activating environment like this
@@ -151,7 +151,7 @@ jobs:
151151
run: uv pip uninstall pytorch-lightning
152152

153153
- name: Cache datasets
154-
uses: actions/cache@v5
154+
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
155155
with:
156156
path: Datasets
157157
key: pl-dataset
@@ -202,12 +202,12 @@ jobs:
202202
203203
- name: Upload test results to Codecov
204204
if: ${{ !cancelled() }} # Run even if tests fail
205-
uses: codecov/test-results-action@v1
205+
uses: codecov/test-results-action@0fa95f0e1eeaafde2c782583b36b28ad0d8c77d3 # v1.2.1
206206
with:
207207
token: ${{ secrets.CODECOV_TOKEN }}
208208

209209
- name: Upload coverage to Codecov
210-
uses: codecov/codecov-action@v6
210+
uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1
211211
# see: https://github.com/actions/toolkit/issues/399
212212
continue-on-error: true
213213
with:

.github/workflows/code-checks.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ jobs:
3131
# Supply-chain guard: skip PyPI releases newer than this. See https://docs.astral.sh/uv/reference/settings/#exclude-newer
3232
UV_EXCLUDE_NEWER: "2 days"
3333
steps:
34-
- uses: actions/checkout@v6
34+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3535

3636
- name: Install uv and set Python version
37-
uses: astral-sh/setup-uv@v7
37+
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
3838
with:
3939
python-version: "3.11"
4040
# TODO: Avoid activating environment like this
@@ -51,7 +51,7 @@ jobs:
5151
uv pip list
5252
5353
- name: mypy cache
54-
uses: actions/cache@v5
54+
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
5555
with:
5656
path: .mypy_cache
5757
key: mypy-${{ hashFiles('requirements/typing.txt') }}

.github/workflows/docs-build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
PIN_RELEASE_VERSIONS: 1
6666
ARTIFACT_DAYS: 0
6767
steps:
68-
- uses: actions/checkout@v6
68+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6969
with:
7070
ref: ${{ inputs.checkout }}
7171
token: ${{ secrets.GITHUB_TOKEN }}
@@ -74,7 +74,7 @@ jobs:
7474
lfs: ${{ matrix.pkg-name == 'pytorch' }}
7575

7676
- name: Install uv and set Python version
77-
uses: astral-sh/setup-uv@v7
77+
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
7878
with:
7979
python-version: "3.10"
8080
# TODO: Avoid activating environment like this
@@ -141,7 +141,7 @@ jobs:
141141

142142
- name: Upload built docs
143143
if: ${{ matrix.target == 'html' }}
144-
uses: actions/upload-artifact@v7
144+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
145145
with:
146146
name: docs-${{ matrix.pkg-name }}-${{ github.sha }}
147147
path: docs/build/html/
@@ -161,18 +161,18 @@ jobs:
161161
# use input if dispatch or git tag
162162
VERSION: ${{ inputs.version || github.ref_name }}
163163
steps:
164-
- uses: actions/download-artifact@v8
164+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
165165
with:
166166
name: docs-${{ matrix.pkg-name }}-${{ github.sha }}
167167
path: docs/build/html/
168168

169169
- name: Authenticate to Google Cloud
170-
uses: google-github-actions/auth@v3
170+
uses: google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093 # v3.0.0
171171
with:
172172
credentials_json: ${{ secrets.GCS_SA_KEY }}
173173

174174
- name: Setup gcloud
175-
uses: google-github-actions/setup-gcloud@v3
175+
uses: google-github-actions/setup-gcloud@aa5489c8933f4cc7a4f7d45035b3b1440c9c10db # v3.0.1
176176
with:
177177
project_id: ${{ secrets.GCS_PROJECT }}
178178

0 commit comments

Comments
 (0)