Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set check-latest to false when setup python and pip cache in CI #87621

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/actions/setup-win/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ runs:
- name: Setup Python3
uses: actions/setup-python@v4
with:
python-version: "3.x"
python-version: '3.x'
check-latest: false
cache: pip
cache-dependency-path: |
**/requirements.txt
Expand Down
37 changes: 21 additions & 16 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,16 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: '3.8'
architecture: x64
check-latest: false
cache: pip
cache-dependency-path: |
**/.github/requirements-gha-cache.txt

- name: Install lintrunner
uses: nick-fields/retry@3e91a01664abd3c5cd539100d10d33b9c5b68482
with:
timeout_minutes: 5
max_attempts: 3
command: pip install lintrunner==0.9.2
- name: Install requirements
run: |
pip install -r .github/requirements-gha-cache.txt --user

- name: Initialize lint dependencies
run: lintrunner init
Expand Down Expand Up @@ -85,8 +83,9 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.x
python-version: '3.x'
architecture: x64
check-latest: false
cache: pip
cache-dependency-path: |
**/requirements.txt
Expand Down Expand Up @@ -149,8 +148,9 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.x
python-version: '3.x'
architecture: x64
check-latest: false
cache: pip
cache-dependency-path: |
**/requirements.txt
Expand Down Expand Up @@ -240,9 +240,10 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: '3.8'
architecture: x64
cache: 'pip'
check-latest: false
cache: pip
cache-dependency-path: |
**/.github/requirements-gha-cache.txt

Expand Down Expand Up @@ -273,8 +274,9 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: '3.8'
architecture: x64
check-latest: false
cache: pip
cache-dependency-path: |
**/requirements.txt
Expand Down Expand Up @@ -318,23 +320,26 @@ jobs:
if: matrix.test_type == 'older_python_version'
uses: actions/setup-python@v4
with:
python-version: 3.5
python-version: '3.5'
architecture: x64
check-latest: false
cache: pip
cache-dependency-path: |
**/.github/requirements-gha-cache.txt
**/requirements.txt
- name: Setup Python 3.8
if: matrix.test_type != 'older_python_version'
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: '3.8'
architecture: x64
check-latest: false
cache: pip
cache-dependency-path: |
**/.github/requirements-gha-cache.txt
**/requirements.txt
- name: Install torch
if: matrix.test_type == 'with_torch'
run: |
pip install -r requirements.txt
# Doesn't really matter what torch version, we just need ANY torch installed
pip install 'torch==1.*'
- name: Run collect_env.py
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pr-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: '3.10'
check-latest: false
cache: pip
cache-dependency-path: |
**/.github/requirements-gha-cache.txt
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/revert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: '3.8'
architecture: x64
cache: 'pip'
check-latest: false
cache: pip
- run: pip install pyyaml==6.0

- name: Setup committer id
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/trymerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.8
cache: 'pip'
python-version: '3.8'
check-latest: false
cache: pip
architecture: x64
- run: pip install pyyaml==6.0

Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/tryrebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: '3.8'
architecture: x64
cache: 'pip'
check-latest: false
cache: pip
- run: pip install pyyaml==6.0

- name: Setup committer id
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/update-viablestrict.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: '3.8'
architecture: x64
check-latest: false
cache: pip
cache-dependency-path: |
**/.circleci/docker/requirements-ci.txt
Expand Down
8 changes: 4 additions & 4 deletions tools/linter/adapters/s3_init_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@
},
"actionlint": {
"Darwin": {
"download_url": "https://oss-clang-format.s3.us-east-2.amazonaws.com/actionlint/1.6.15/Darwin_amd64/actionlint",
"hash": "e9a0e0b17e54cfefe7964b6aa1da8921b1f8f2318c31c0eb1a17ea3e8ab10db2"
"download_url": "https://oss-clang-format.s3.us-east-2.amazonaws.com/actionlint/1.6.21/Darwin_amd64/actionlint",
"hash": "b354db83815384d3c3a07f68f44b30cb0a70899757a0d185d7322de9952e8813"
},
"Linux": {
"download_url": "https://oss-clang-format.s3.us-east-2.amazonaws.com/actionlint/1.6.15/Linux_arm64/actionlint",
"hash": "d6b45ae67f29a2bf9ddd226071ddd8f158fdf2992e8515a06838e5fef90f3a2d"
"download_url": "https://oss-clang-format.s3.us-east-2.amazonaws.com/actionlint/1.6.21/Linux_arm64/actionlint",
"hash": "025ac157db121b33971ef24af72d73d71cda3cb1e3a94795bb2708ef4032ca76"
}
}
}