Skip to content

Commit 794030f

Browse files
committed
Merge branch 'add-engine-has-registered-events' of https://github.com/jeevanchevula/ignite into add-engine-has-registered-events
2 parents f66b5e0 + b2078cf commit 794030f

23 files changed

+197
-96
lines changed

.github/workflows/binaries-nightly-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
build-publish:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v5
1414

1515
- name: Setup Miniconda
1616
uses: conda-incubator/setup-miniconda@v3
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Code Style Checks
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- "*.*.*"
8+
paths:
9+
- "**.py"
10+
- "setup.cfg"
11+
- "requirements-dev.txt"
12+
- "pyproject.toml"
13+
- ".pre-commit-config.yaml"
14+
- ".github/workflows/code-style-checks.yml"
15+
- "!assets/**"
16+
- "!docker/**"
17+
- "!docs/**"
18+
- "!conda.recipe"
19+
pull_request:
20+
paths:
21+
- "**.py"
22+
- "setup.cfg"
23+
- "requirements-dev.txt"
24+
- "pyproject.toml"
25+
- ".pre-commit-config.yaml"
26+
- ".github/workflows/code-style-checks.yml"
27+
- "!assets/**"
28+
- "!docker/**"
29+
- "!docs/**"
30+
- "!conda.recipe"
31+
workflow_dispatch:
32+
33+
concurrency:
34+
# <workflow_name>-<branch_name>-<true || commit_sha (if branch is protected)>
35+
group: code-style-${{ github.ref_name }}-${{ !(github.ref_protected) || github.sha }}
36+
cancel-in-progress: true
37+
38+
jobs:
39+
code-style:
40+
runs-on: ubuntu-latest
41+
strategy:
42+
matrix:
43+
python-version: ["3.9", "3.13"]
44+
45+
steps:
46+
- uses: actions/checkout@v5
47+
48+
- uses: astral-sh/setup-uv@v6
49+
with:
50+
version: "latest"
51+
python-version: ${{ matrix.python-version }}
52+
activate-environment: true
53+
enable-cache: true
54+
cache-dependency-glob: |
55+
**/requirements-dev.txt
56+
**/pyproject.toml
57+
58+
- name: Install dependencies
59+
run: |
60+
uv pip install pre-commit
61+
uv pip install -r requirements-dev.txt
62+
uv pip install -e .
63+
64+
- name: Run pre-commit checks
65+
run: pre-commit run --all-files --show-diff-on-failure

.github/workflows/code-style.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/workflows/docker-build.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
hvd_version: ${{ steps.set-versions.outputs.hvd_version }}
2525
msdp_version: ${{ steps.set-versions.outputs.msdp_version }}
2626
steps:
27-
- uses: actions/checkout@v4
27+
- uses: actions/checkout@v5
2828
- name: Changed Files Exporter
2929
if: github.event_name == 'pull_request'
3030
id: files
@@ -63,7 +63,7 @@ jobs:
6363
echo "::endgroup::"
6464
6565
- name: Checkout repository (pytorch/test-infra)
66-
uses: actions/checkout@v4
66+
uses: actions/checkout@v5
6767
with:
6868
# Support the use case where we need to checkout someone's fork
6969
repository: pytorch/test-infra
@@ -73,7 +73,7 @@ jobs:
7373
uses: ./test-infra/.github/actions/setup-linux
7474

7575
- name: Checkout repository (${{ github.repository }})
76-
uses: actions/checkout@v4
76+
uses: actions/checkout@v5
7777
with:
7878
# Support the use case where we need to checkout someone's fork
7979
repository: ${{ github.repository }}
@@ -122,7 +122,7 @@ jobs:
122122
echo "::endgroup::"
123123
124124
- name: Checkout repository (pytorch/test-infra)
125-
uses: actions/checkout@v4
125+
uses: actions/checkout@v5
126126
with:
127127
# Support the use case where we need to checkout someone's fork
128128
repository: pytorch/test-infra
@@ -132,7 +132,7 @@ jobs:
132132
uses: ./test-infra/.github/actions/setup-linux
133133

134134
- name: Checkout repository (${{ github.repository }})
135-
uses: actions/checkout@v4
135+
uses: actions/checkout@v5
136136
with:
137137
# Support the use case where we need to checkout someone's fork
138138
repository: ${{ github.repository }}
@@ -181,7 +181,7 @@ jobs:
181181
echo "::endgroup::"
182182
183183
- name: Checkout repository (pytorch/test-infra)
184-
uses: actions/checkout@v4
184+
uses: actions/checkout@v5
185185
with:
186186
# Support the use case where we need to checkout someone's fork
187187
repository: pytorch/test-infra
@@ -191,7 +191,7 @@ jobs:
191191
uses: ./test-infra/.github/actions/setup-linux
192192

193193
- name: Checkout repository (${{ github.repository }})
194-
uses: actions/checkout@v4
194+
uses: actions/checkout@v5
195195
with:
196196
# Support the use case where we need to checkout someone's fork
197197
repository: ${{ github.repository }}
@@ -240,7 +240,7 @@ jobs:
240240
echo "::endgroup::"
241241
242242
- name: Checkout repository (pytorch/test-infra)
243-
uses: actions/checkout@v4
243+
uses: actions/checkout@v5
244244
with:
245245
# Support the use case where we need to checkout someone's fork
246246
repository: pytorch/test-infra
@@ -250,7 +250,7 @@ jobs:
250250
uses: ./test-infra/.github/actions/setup-linux
251251

252252
- name: Checkout repository (${{ github.repository }})
253-
uses: actions/checkout@v4
253+
uses: actions/checkout@v5
254254
with:
255255
# Support the use case where we need to checkout someone's fork
256256
repository: ${{ github.repository }}

.github/workflows/docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
os: ["ubuntu-latest"]
2626
python-version: ["3.10"]
2727
steps:
28-
- uses: actions/checkout@v4
28+
- uses: actions/checkout@v5
2929
- uses: astral-sh/setup-uv@v6
3030
with:
3131
version: "latest"
@@ -66,7 +66,7 @@ jobs:
6666
os: ["ubuntu-latest"]
6767
python-version: ["3.10"]
6868
steps:
69-
- uses: actions/checkout@v4
69+
- uses: actions/checkout@v5
7070
- uses: astral-sh/setup-uv@v6
7171
with:
7272
version: "latest"
@@ -96,7 +96,7 @@ jobs:
9696
os: ["ubuntu-latest"]
9797
python-version: ["3.10"]
9898
steps:
99-
- uses: actions/checkout@v4
99+
- uses: actions/checkout@v5
100100
- uses: astral-sh/setup-uv@v6
101101
with:
102102
version: "latest"

.github/workflows/gpu-hvd-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
echo "::endgroup::"
4040
4141
- name: Checkout repository (pytorch/test-infra)
42-
uses: actions/checkout@v4
42+
uses: actions/checkout@v5
4343
with:
4444
# Support the use case where we need to checkout someone's fork
4545
repository: pytorch/test-infra
@@ -54,7 +54,7 @@ jobs:
5454
docker-image: ${{ env.DOCKER_IMAGE }}
5555

5656
- name: Checkout repository (${{ github.repository }})
57-
uses: actions/checkout@v4
57+
uses: actions/checkout@v5
5858
with:
5959
# Support the use case where we need to checkout someone's fork
6060
repository: ${{ github.repository }}
@@ -161,7 +161,7 @@ jobs:
161161
- name: Upload coverage to Codecov
162162
uses: codecov/codecov-action@v5
163163
with:
164-
file: ${{ github.repository }}/coverage.xml
164+
files: ${{ github.repository }}/coverage.xml
165165
flags: gpu-2
166166
fail_ci_if_error: false
167167

.github/workflows/gpu-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
echo "::endgroup::"
4040
4141
- name: Checkout repository (pytorch/test-infra)
42-
uses: actions/checkout@v4
42+
uses: actions/checkout@v5
4343
with:
4444
# Support the use case where we need to checkout someone's fork
4545
repository: pytorch/test-infra
@@ -54,7 +54,7 @@ jobs:
5454
docker-image: ${{ env.DOCKER_IMAGE }}
5555

5656
- name: Checkout repository (${{ github.repository }})
57-
uses: actions/checkout@v4
57+
uses: actions/checkout@v5
5858
with:
5959
# Support the use case where we need to checkout someone's fork
6060
repository: ${{ github.repository }}
@@ -131,7 +131,7 @@ jobs:
131131
- name: Upload coverage to Codecov
132132
uses: codecov/codecov-action@v5
133133
with:
134-
file: ${{ github.repository }}/coverage.xml
134+
files: ${{ github.repository }}/coverage.xml
135135
flags: gpu-2
136136
fail_ci_if_error: false
137137

.github/workflows/hvd-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
pytorch-channel: [pytorch]
3333

3434
steps:
35-
- uses: actions/checkout@v4
35+
- uses: actions/checkout@v5
3636

3737
- name: Get year & week number
3838
id: get-date
@@ -94,6 +94,6 @@ jobs:
9494
- name: Upload coverage to Codecov
9595
uses: codecov/codecov-action@v5
9696
with:
97-
file: ./coverage.xml
97+
files: ./coverage.xml
9898
flags: hvd-cpu
9999
fail_ci_if_error: false

.github/workflows/mps-tests.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ jobs:
4848
echo "::endgroup::"
4949
5050
- name: Checkout repository (pytorch/test-infra)
51-
uses: actions/checkout@v4
51+
uses: actions/checkout@v5
5252
with:
5353
# Support the use case where we need to checkout someone's fork
5454
repository: pytorch/test-infra
5555
path: test-infra
5656

5757
- name: Checkout repository (${{ github.repository }})
58-
uses: actions/checkout@v4
58+
uses: actions/checkout@v5
5959
with:
6060
# Support the use case where we need to checkout someone's fork
6161
repository: ${{ github.repository }}
@@ -75,6 +75,12 @@ jobs:
7575
conda activate $CONDA_ENV
7676
pip install uv
7777
78+
- name: Install GPG for Codecov
79+
shell: bash -l {0}
80+
run: |
81+
# Install GPG which is required by codecov-action@v5
82+
brew install gnupg
83+
7884
- name: Install PyTorch
7985
if: ${{ matrix.pytorch-channel == 'pytorch' }}
8086
shell: bash -l {0}
@@ -130,7 +136,7 @@ jobs:
130136
- name: Upload coverage to Codecov
131137
uses: codecov/codecov-action@v5
132138
with:
133-
file: ${{ github.repository }}/coverage.xml
139+
files: ${{ github.repository }}/coverage.xml
134140
flags: mps
135141
fail_ci_if_error: false
136142

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
python-version: "3.11"
3636

3737
steps:
38-
- uses: actions/checkout@v4
38+
- uses: actions/checkout@v5
3939

4040
- name: Get year & week number
4141
id: get-date
@@ -107,7 +107,7 @@ jobs:
107107
needs: build
108108
if: always() && needs.build.result == 'failure'
109109
steps:
110-
- uses: actions/checkout@v4
110+
- uses: actions/checkout@v5
111111
- uses: JasonEtco/create-an-issue@v2
112112
name: Create issue if pytorch version tests failed
113113
with:

0 commit comments

Comments
 (0)