mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
[CI][BE] Update other actions (#149922)
Discovered by actionlint-1.7.7: - `actions/checkout@v3`->`actions/checkout@v4` - `actions/setup-python@v4` -> `actions/setup-python@v5` Pull Request resolved: https://github.com/pytorch/pytorch/pull/149922 Approved by: https://github.com/Skylion007 ghstack dependencies: #149917, #149918
This commit is contained in:
parent
535885dc8d
commit
6c7f9f7e7d
2
.github/workflows/assigntome-docathon.yml
vendored
2
.github/workflows/assigntome-docathon.yml
vendored
|
|
@ -12,7 +12,7 @@ jobs:
|
||||||
issues: write
|
issues: write
|
||||||
steps:
|
steps:
|
||||||
- name: Check for "/assigntome" in comment
|
- name: Check for "/assigntome" in comment
|
||||||
uses: actions/github-script@v6
|
uses: actions/github-script@v7
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
2
.github/workflows/build-manywheel-images.yml
vendored
2
.github/workflows/build-manywheel-images.yml
vendored
|
|
@ -99,7 +99,7 @@ jobs:
|
||||||
GPU_ARCH_VERSION: ${{ matrix.cuda_version }}
|
GPU_ARCH_VERSION: ${{ matrix.cuda_version }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout PyTorch
|
- name: Checkout PyTorch
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
- name: Calculate docker image
|
- name: Calculate docker image
|
||||||
if: env.WITH_PUSH == 'false'
|
if: env.WITH_PUSH == 'false'
|
||||||
uses: pytorch/test-infra/.github/actions/calculate-docker-image@main
|
uses: pytorch/test-infra/.github/actions/calculate-docker-image@main
|
||||||
|
|
|
||||||
2
.github/workflows/build-triton-wheel.yml
vendored
2
.github/workflows/build-triton-wheel.yml
vendored
|
|
@ -264,7 +264,7 @@ jobs:
|
||||||
image: continuumio/miniconda3:4.12.0
|
image: continuumio/miniconda3:4.12.0
|
||||||
environment: ${{ (github.event_name == 'push' && github.event.ref == 'refs/heads/main') && 'nightly-wheel-upload' || '' }}
|
environment: ${{ (github.event_name == 'push' && github.event.ref == 'refs/heads/main') && 'nightly-wheel-upload' || '' }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Configure AWS credentials(PyTorch account) for main
|
- name: Configure AWS credentials(PyTorch account) for main
|
||||||
if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/main' }}
|
if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/main' }}
|
||||||
|
|
|
||||||
2
.github/workflows/check-labels.yml
vendored
2
.github/workflows/check-labels.yml
vendored
|
|
@ -44,7 +44,7 @@ jobs:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: '3.9'
|
||||||
architecture: x64
|
architecture: x64
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ jobs:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: '3.9'
|
||||||
cache: pip
|
cache: pip
|
||||||
|
|
|
||||||
4
.github/workflows/cherry-pick.yml
vendored
4
.github/workflows/cherry-pick.yml
vendored
|
|
@ -14,13 +14,13 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
id: checkout
|
id: checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
token: ${{ secrets.GH_PYTORCHBOT_CHERRY_PICK_TOKEN }}
|
token: ${{ secrets.GH_PYTORCHBOT_CHERRY_PICK_TOKEN }}
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.11'
|
||||||
cache: pip
|
cache: pip
|
||||||
|
|
|
||||||
2
.github/workflows/create_release.yml
vendored
2
.github/workflows/create_release.yml
vendored
|
|
@ -69,7 +69,7 @@ jobs:
|
||||||
echo "Created source archive $PT_RELEASE_FILE with content: $(ls -a "$PT_RELEASE_NAME")"
|
echo "Created source archive $PT_RELEASE_FILE with content: $(ls -a "$PT_RELEASE_NAME")"
|
||||||
- name: Upload source distribution for release
|
- name: Upload source distribution for release
|
||||||
if: ${{ github.event_name == 'release' }}
|
if: ${{ github.event_name == 'release' }}
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
files: ${{env.PT_RELEASE_FILE}}
|
files: ${{env.PT_RELEASE_FILE}}
|
||||||
- name: Upload source distribution to GHA artifacts for release tags
|
- name: Upload source distribution to GHA artifacts for release tags
|
||||||
|
|
|
||||||
4
.github/workflows/delete_old_branches.yml
vendored
4
.github/workflows/delete_old_branches.yml
vendored
|
|
@ -22,12 +22,12 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.11'
|
||||||
architecture: x64
|
architecture: x64
|
||||||
|
|
|
||||||
4
.github/workflows/docathon-sync-label.yml
vendored
4
.github/workflows/docathon-sync-label.yml
vendored
|
|
@ -14,11 +14,11 @@ jobs:
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the repo
|
- name: Check out the repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: 3.x
|
python-version: 3.x
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|
|
||||||
4
.github/workflows/docker-release.yml
vendored
4
.github/workflows/docker-release.yml
vendored
|
|
@ -88,7 +88,7 @@ jobs:
|
||||||
# [see note: pytorch repo ref]
|
# [see note: pytorch repo ref]
|
||||||
# deep clone (fetch-depth 0) required for git merge-base
|
# deep clone (fetch-depth 0) required for git merge-base
|
||||||
- name: Checkout PyTorch
|
- name: Checkout PyTorch
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
submodules: 'recursive'
|
submodules: 'recursive'
|
||||||
|
|
@ -96,7 +96,7 @@ jobs:
|
||||||
uses: ./.github/actions/setup-linux
|
uses: ./.github/actions/setup-linux
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
if: ${{ env.WITH_PUSH == 'true' }}
|
if: ${{ env.WITH_PUSH == 'true' }}
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: pytorch
|
username: pytorch
|
||||||
|
|
|
||||||
6
.github/workflows/lint.yml
vendored
6
.github/workflows/lint.yml
vendored
|
|
@ -207,7 +207,7 @@ jobs:
|
||||||
submodules: false
|
submodules: false
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
- name: Setup Python 3.9
|
- name: Setup Python 3.9
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: '3.9'
|
||||||
architecture: x64
|
architecture: x64
|
||||||
|
|
@ -254,7 +254,7 @@ jobs:
|
||||||
echo "MIN_PYTHON_VERSION=$(python3 .github/scripts/get_ci_variable.py --min-python-version)" >> "${GITHUB_OUTPUT}"
|
echo "MIN_PYTHON_VERSION=$(python3 .github/scripts/get_ci_variable.py --min-python-version)" >> "${GITHUB_OUTPUT}"
|
||||||
- name: Setup Old Python version
|
- name: Setup Old Python version
|
||||||
if: matrix.test_type == 'older_python_version'
|
if: matrix.test_type == 'older_python_version'
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: 3.6
|
python-version: 3.6
|
||||||
architecture: x64
|
architecture: x64
|
||||||
|
|
@ -264,7 +264,7 @@ jobs:
|
||||||
**/requirements.txt
|
**/requirements.txt
|
||||||
- name: Setup Min Python version
|
- name: Setup Min Python version
|
||||||
if: matrix.test_type != 'older_python_version'
|
if: matrix.test_type != 'older_python_version'
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: ${{ steps.get-min-python-version.outputs.MIN_PYTHON_VERSION }}
|
python-version: ${{ steps.get-min-python-version.outputs.MIN_PYTHON_VERSION }}
|
||||||
architecture: x64
|
architecture: x64
|
||||||
|
|
|
||||||
6
.github/workflows/llm_td_retrieval.yml
vendored
6
.github/workflows/llm_td_retrieval.yml
vendored
|
|
@ -27,7 +27,7 @@ jobs:
|
||||||
needs: get-label-type
|
needs: get-label-type
|
||||||
steps:
|
steps:
|
||||||
- name: Clone PyTorch
|
- name: Clone PyTorch
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: pytorch/pytorch
|
repository: pytorch/pytorch
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
@ -37,14 +37,14 @@ jobs:
|
||||||
uses: ./pytorch/.github/actions/setup-linux
|
uses: ./pytorch/.github/actions/setup-linux
|
||||||
|
|
||||||
- name: Clone CodeLlama
|
- name: Clone CodeLlama
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: osalpekar/codellama
|
repository: osalpekar/codellama
|
||||||
ref: main
|
ref: main
|
||||||
path: codellama
|
path: codellama
|
||||||
|
|
||||||
- name: Clone Target Determination Code
|
- name: Clone Target Determination Code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: osalpekar/llm-target-determinator
|
repository: osalpekar/llm-target-determinator
|
||||||
ref: v0.0.2
|
ref: v0.0.2
|
||||||
|
|
|
||||||
2
.github/workflows/nightly-s3-uploads.yml
vendored
2
.github/workflows/nightly-s3-uploads.yml
vendored
|
|
@ -28,7 +28,7 @@ jobs:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
submodules: false
|
submodules: false
|
||||||
|
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.11'
|
||||||
cache: pip
|
cache: pip
|
||||||
|
|
|
||||||
4
.github/workflows/revert.yml
vendored
4
.github/workflows/revert.yml
vendored
|
|
@ -13,14 +13,14 @@ jobs:
|
||||||
GH_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
GH_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
id: checkout
|
id: checkout
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
token: ${{ secrets.MERGEBOT_TOKEN }}
|
token: ${{ secrets.MERGEBOT_TOKEN }}
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: '3.9'
|
||||||
architecture: x64
|
architecture: x64
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Run Hardcode runner-determinator script
|
- name: Run Hardcode runner-determinator script
|
||||||
id: hardcode-script
|
id: hardcode-script
|
||||||
|
|
@ -38,4 +38,4 @@ jobs:
|
||||||
# version embedded into .github/workflows/_runner-determinator.yml
|
# version embedded into .github/workflows/_runner-determinator.yml
|
||||||
diff runner_determinator_workflow.py .github/scripts/runner_determinator.py
|
diff runner_determinator_workflow.py .github/scripts/runner_determinator.py
|
||||||
# Fail the job if the scripts are not identical
|
# Fail the job if the scripts are not identical
|
||||||
continue-on-error: false
|
continue-on-error: false
|
||||||
|
|
|
||||||
2
.github/workflows/scorecards.yml
vendored
2
.github/workflows/scorecards.yml
vendored
|
|
@ -25,7 +25,7 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: "Checkout code"
|
- name: "Checkout code"
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
|
|
|
||||||
2
.github/workflows/stale.yml
vendored
2
.github/workflows/stale.yml
vendored
|
|
@ -27,7 +27,7 @@ jobs:
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/github-script@v6
|
- uses: actions/github-script@v7
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
// Do some dumb retries on requests.
|
// Do some dumb retries on requests.
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ jobs:
|
||||||
environment: target-determinator-env
|
environment: target-determinator-env
|
||||||
steps:
|
steps:
|
||||||
- name: Clone PyTorch
|
- name: Clone PyTorch
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
path: pytorch
|
path: pytorch
|
||||||
|
|
||||||
|
|
@ -59,14 +59,14 @@ jobs:
|
||||||
uses: pytorch/test-infra/.github/actions/setup-nvidia@main
|
uses: pytorch/test-infra/.github/actions/setup-nvidia@main
|
||||||
|
|
||||||
- name: Clone CodeLlama
|
- name: Clone CodeLlama
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: osalpekar/codellama
|
repository: osalpekar/codellama
|
||||||
ref: 1ec50e0cfc0fadc3b6ceb146617e2119ab26eb34
|
ref: 1ec50e0cfc0fadc3b6ceb146617e2119ab26eb34
|
||||||
path: codellama
|
path: codellama
|
||||||
|
|
||||||
- name: Clone Target Determination Code
|
- name: Clone Target Determination Code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: osalpekar/llm-target-determinator
|
repository: osalpekar/llm-target-determinator
|
||||||
ref: v0.0.2
|
ref: v0.0.2
|
||||||
|
|
|
||||||
4
.github/workflows/trymerge.yml
vendored
4
.github/workflows/trymerge.yml
vendored
|
|
@ -16,13 +16,13 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
id: checkout
|
id: checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
token: ${{ secrets.MERGEBOT_TOKEN }}
|
token: ${{ secrets.MERGEBOT_TOKEN }}
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: '3.9'
|
||||||
check-latest: false
|
check-latest: false
|
||||||
|
|
|
||||||
4
.github/workflows/tryrebase.yml
vendored
4
.github/workflows/tryrebase.yml
vendored
|
|
@ -13,13 +13,13 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
id: checkout
|
id: checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
token: ${{ secrets.MERGEBOT_TOKEN }}
|
token: ${{ secrets.MERGEBOT_TOKEN }}
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: '3.9'
|
||||||
architecture: x64
|
architecture: x64
|
||||||
|
|
|
||||||
2
.github/workflows/upload-test-stats.yml
vendored
2
.github/workflows/upload-test-stats.yml
vendored
|
|
@ -48,7 +48,7 @@ jobs:
|
||||||
role-to-assume: arn:aws:iam::308535385114:role/gha_workflow_upload-torch-test-stats
|
role-to-assume: arn:aws:iam::308535385114:role/gha_workflow_upload-torch-test-stats
|
||||||
aws-region: us-east-1
|
aws-region: us-east-1
|
||||||
|
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.11'
|
||||||
cache: pip
|
cache: pip
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ jobs:
|
||||||
role-to-assume: arn:aws:iam::308535385114:role/gha_workflow_upload-torch-test-stats
|
role-to-assume: arn:aws:iam::308535385114:role/gha_workflow_upload-torch-test-stats
|
||||||
aws-region: us-east-1
|
aws-region: us-east-1
|
||||||
|
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.11'
|
||||||
cache: pip
|
cache: pip
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ jobs:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
submodules: false
|
submodules: false
|
||||||
|
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.11'
|
||||||
cache: pip
|
cache: pip
|
||||||
|
|
|
||||||
6
.github/workflows/weekly.yml
vendored
6
.github/workflows/weekly.yml
vendored
|
|
@ -17,7 +17,7 @@ jobs:
|
||||||
environment: update-commit-hash
|
environment: update-commit-hash
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: update-xla-commit-hash
|
- name: update-xla-commit-hash
|
||||||
|
|
@ -37,12 +37,12 @@ jobs:
|
||||||
environment: update-commit-hash
|
environment: update-commit-hash
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
token: ${{ secrets.UPDATEBOT_TOKEN }}
|
token: ${{ secrets.UPDATEBOT_TOKEN }}
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: '3.9'
|
||||||
- name: Install requirements
|
- name: Install requirements
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user