Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/binaries-nightly-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
build-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arpitjain099 how can I check easily that this sha points to v6.0.3 tag?
There are tens of sha hashes, how can we ensure that they are not already pointing to some incorrect release?


- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v4
uses: conda-incubator/setup-miniconda@8ee1f361103df19b6f8c8655fd3967a8ecb162d5 # v4.0.1
with:
miniconda-version: "latest"
python-version: "3.13"
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
twine check dist/*
TWINE_USERNAME="${{ secrets.PYPI_USER }}" TWINE_PASSWORD="${{ secrets.PYPI_TOKEN }}" twine upload --verbose dist/*

- uses: JasonEtco/create-an-issue@v2
- uses: JasonEtco/create-an-issue@1b14a70e4d8dc185e5cc76d3bec9eab20257b2c5 # v2.9.2
name: Create issue if nightly releases failed
if: failure()
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/code-style-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ jobs:
python-version: ["3.10", "3.13"]

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3

- name: Get year & week number
id: get-date
run: |
echo "date=$(/bin/date "+%Y-%U")" >> $GITHUB_OUTPUT

- uses: astral-sh/setup-uv@v7
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
version: "latest"
python-version: ${{ matrix.python-version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/discord_issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
steps:
- name: "Discuss on Discord-Issues"
if: ${{ github.event.label.name == 'help wanted' }}
uses: EndBug/discuss-on-discord@v1.1.0
uses: EndBug/discuss-on-discord@bff2908cbd855fff72c1007aed386e09144727e1 # v1.1.0
with:
discord_bot_token: ${{ secrets.DISCORD_BOT_TOKEN }}
destination: ${{ secrets.DISCORD_BOT_DESTINATION }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/discord_pull_requests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
steps:
- name: "Discuss on Discord-PR (Non-maintainer only)"
if: ${{ github.event.label.name == 'help wanted' }}
uses: EndBug/discuss-on-discord@v1.1.0
uses: EndBug/discuss-on-discord@bff2908cbd855fff72c1007aed386e09144727e1 # v1.1.0
with:
discord_bot_token: ${{ secrets.DISCORD_BOT_TOKEN }}
destination: ${{ secrets.DISCORD_BOT_DESTINATION }}
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ jobs:
hvd_version: ${{ steps.set-versions.outputs.hvd_version }}
msdp_version: ${{ steps.set-versions.outputs.msdp_version }}
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Changed Files Exporter
if: github.event_name == 'pull_request'
id: files
uses: umani/changed-files@v4.2.0
uses: umani/changed-files@138acc60bcaa548e0c194fc69ed36321ee8466d2 # v4.2.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Get a list of modified files
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
echo "::endgroup::"

- name: Checkout repository (pytorch/test-infra)
uses: actions/checkout@v6
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
# Support the use case where we need to checkout someone's fork
repository: pytorch/test-infra
Expand All @@ -73,7 +73,7 @@ jobs:
uses: ./test-infra/.github/actions/setup-linux

- name: Checkout repository (${{ github.repository }})
uses: actions/checkout@v6
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
# Support the use case where we need to checkout someone's fork
repository: ${{ github.repository }}
Expand Down Expand Up @@ -122,7 +122,7 @@ jobs:
echo "::endgroup::"

- name: Checkout repository (pytorch/test-infra)
uses: actions/checkout@v6
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
# Support the use case where we need to checkout someone's fork
repository: pytorch/test-infra
Expand All @@ -132,7 +132,7 @@ jobs:
uses: ./test-infra/.github/actions/setup-linux

- name: Checkout repository (${{ github.repository }})
uses: actions/checkout@v6
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
# Support the use case where we need to checkout someone's fork
repository: ${{ github.repository }}
Expand Down Expand Up @@ -181,7 +181,7 @@ jobs:
echo "::endgroup::"

- name: Checkout repository (pytorch/test-infra)
uses: actions/checkout@v6
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
# Support the use case where we need to checkout someone's fork
repository: pytorch/test-infra
Expand All @@ -191,7 +191,7 @@ jobs:
uses: ./test-infra/.github/actions/setup-linux

- name: Checkout repository (${{ github.repository }})
uses: actions/checkout@v6
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
# Support the use case where we need to checkout someone's fork
repository: ${{ github.repository }}
Expand Down Expand Up @@ -240,7 +240,7 @@ jobs:
echo "::endgroup::"

- name: Checkout repository (pytorch/test-infra)
uses: actions/checkout@v6
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
# Support the use case where we need to checkout someone's fork
repository: pytorch/test-infra
Expand All @@ -250,7 +250,7 @@ jobs:
uses: ./test-infra/.github/actions/setup-linux

- name: Checkout repository (${{ github.repository }})
uses: actions/checkout@v6
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
# Support the use case where we need to checkout someone's fork
repository: ${{ github.repository }}
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ jobs:
os: ["ubuntu-latest"]
python-version: ["3.10"]
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3

- name: Get year & week number
id: get-date
run: |
echo "date=$(/bin/date "+%Y-%U")" >> $GITHUB_OUTPUT

- uses: astral-sh/setup-uv@v7
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
version: "latest"
python-version: "${{ matrix.python-version }}"
Expand All @@ -53,7 +53,7 @@ jobs:
run: bash .github/workflows/build_docs.sh

- name: Deploy docs
uses: peaceiris/actions-gh-pages@v4
uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/html
Expand All @@ -72,14 +72,14 @@ jobs:
os: ["ubuntu-latest"]
python-version: ["3.10"]
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3

- name: Get year & week number
id: get-date
run: |
echo "date=$(/bin/date "+%Y-%U")" >> $GITHUB_OUTPUT

- uses: astral-sh/setup-uv@v7
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
version: "latest"
python-version: ${{ matrix.python-version }}
Expand All @@ -95,7 +95,7 @@ jobs:
run: bash .github/workflows/install_docs_deps.sh

- name: make linkcheck
uses: nick-fields/retry@v4.0.0
uses: nick-fields/retry@ad984534de44a9489a53aefd81eb77f87c70dc60 # v4.0.0
with:
max_attempts: 3
timeout_minutes: 10
Expand All @@ -111,14 +111,14 @@ jobs:
os: ["ubuntu-latest"]
python-version: ["3.10"]
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3

- name: Get year & week number
id: get-date
run: |
echo "date=$(/bin/date "+%Y-%U")" >> $GITHUB_OUTPUT

- uses: astral-sh/setup-uv@v7
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
version: "latest"
python-version: "${{ matrix.python-version }}"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/gpu-hvd-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
echo "::endgroup::"

- name: Checkout repository (pytorch/test-infra)
uses: actions/checkout@v6
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
# Support the use case where we need to checkout someone's fork
repository: pytorch/test-infra
Expand All @@ -54,7 +54,7 @@ jobs:
docker-image: ${{ env.DOCKER_IMAGE }}

- name: Checkout repository (${{ github.repository }})
uses: actions/checkout@v6
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
# Support the use case where we need to checkout someone's fork
repository: ${{ github.repository }}
Expand Down Expand Up @@ -163,7 +163,7 @@ jobs:
docker exec -t pthd /bin/bash -c "${script}"

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v6
uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1
with:
files: ${{ github.repository }}/coverage.xml
flags: gpu-2
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/gpu-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
echo "::endgroup::"

- name: Checkout repository (pytorch/test-infra)
uses: actions/checkout@v6
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
# Support the use case where we need to checkout someone's fork
repository: pytorch/test-infra
Expand All @@ -54,7 +54,7 @@ jobs:
docker-image: ${{ env.DOCKER_IMAGE }}

- name: Checkout repository (${{ github.repository }})
uses: actions/checkout@v6
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
# Support the use case where we need to checkout someone's fork
repository: ${{ github.repository }}
Expand Down Expand Up @@ -124,7 +124,7 @@ jobs:

- name: Run GPU Unit Tests
continue-on-error: false
uses: nick-fields/retry@v4.0.0
uses: nick-fields/retry@ad984534de44a9489a53aefd81eb77f87c70dc60 # v4.0.0
with:
max_attempts: 5
timeout_minutes: 45
Expand All @@ -133,7 +133,7 @@ jobs:
new_command_on_retry: docker exec -e USE_LAST_FAILED=1 -t pthd /bin/bash -xec 'bash tests/run_gpu_tests.sh 4'

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v6
uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1
with:
files: ${{ github.repository }}/coverage.xml
flags: gpu-2
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/hvd-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ jobs:
pytorch-channel: [pytorch]

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3

- name: Get year & week number
id: get-date
run: echo "date=$(/bin/date "+%Y-%U")" >> $GITHUB_OUTPUT
shell: bash -l {0}

- uses: astral-sh/setup-uv@v7
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
version: "latest"
python-version: ${{ matrix.python-version }}
Expand Down Expand Up @@ -79,12 +79,12 @@ jobs:
# Download MNIST: https://github.com/pytorch/ignite/issues/1737
# to "/tmp" for cpu tests
- name: Download MNIST
uses: pytorch-ignite/download-mnist-github-action@master
uses: pytorch-ignite/download-mnist-github-action@622fc8c4ff50b24322819f54f48624f26932892b # master
with:
target_dir: /tmp

- name: Run Tests
uses: nick-fields/retry@v4.0.0
uses: nick-fields/retry@ad984534de44a9489a53aefd81eb77f87c70dc60 # v4.0.0
with:
max_attempts: 3
timeout_minutes: 40
Expand All @@ -93,7 +93,7 @@ jobs:
new_command_on_retry: USE_LAST_FAILED=1 USE_XDIST=0 bash tests/run_cpu_tests.sh

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v6
uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1
with:
files: ./coverage.xml
flags: hvd-cpu
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/mps-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ jobs:
echo "::endgroup::"

- name: Checkout repository (pytorch/test-infra)
uses: actions/checkout@v6
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
# Support the use case where we need to checkout someone's fork
repository: pytorch/test-infra
path: test-infra

- name: Checkout repository (${{ github.repository }})
uses: actions/checkout@v6
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
# Support the use case where we need to checkout someone's fork
repository: ${{ github.repository }}
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
# Download MNIST: https://github.com/pytorch/ignite/issues/1737
# to "/tmp" for unit tests
- name: Download MNIST
uses: pytorch-ignite/download-mnist-github-action@master
uses: pytorch-ignite/download-mnist-github-action@622fc8c4ff50b24322819f54f48624f26932892b # master
with:
target_dir: /tmp

Expand All @@ -135,7 +135,7 @@ jobs:
SKIP_DISTRIB_TESTS=${{ matrix.skip-distrib-tests }} bash tests/run_cpu_tests.sh

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v6
uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1
with:
files: ${{ github.repository }}/coverage.xml
flags: mps
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pytorch-version-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ jobs:
# python-version: "3.12"

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3

- name: Get year & week number
id: get-date
run: echo "date=$(/bin/date "+%Y-%U")" >> $GITHUB_OUTPUT
shell: bash -l {0}

- uses: astral-sh/setup-uv@v7
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
version: "latest"
python-version: ${{ matrix.python-version }}
Expand All @@ -55,12 +55,12 @@ jobs:
uv pip install .

- name: Download MNIST
uses: pytorch-ignite/download-mnist-github-action@master
uses: pytorch-ignite/download-mnist-github-action@622fc8c4ff50b24322819f54f48624f26932892b # master
with:
target_dir: /tmp

- name: Run Tests
uses: nick-fields/retry@v4.0.0
uses: nick-fields/retry@ad984534de44a9489a53aefd81eb77f87c70dc60 # v4.0.0
with:
max_attempts: 5
timeout_minutes: 15
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/stable-release-anaconda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
conda-build-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3

- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v4
uses: conda-incubator/setup-miniconda@8ee1f361103df19b6f8c8655fd3967a8ecb162d5 # v4.0.1
with:
miniconda-version: "latest"
python-version: "3.13"
Expand Down
Loading