Skip to content

Commit

Permalink
Bump version of actions (#2655)
Browse files Browse the repository at this point in the history
### Changes

Bump version of actions
```
      - uses: actions/checkout@v4
      - uses: actions/setup-python@v5
```

Use python 3.8.18, 3.8.10 falls with ` no such option:
--root-user-action`

### Reason for changes

GA falls 

https://github.com/openvinotoolkit/nncf/actions/runs/8834850499/job/24257578007?pr=2581
  • Loading branch information
AlexanderDokuchaev authored Apr 25, 2024
1 parent b68a42f commit bdc144b
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/api_changes_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
with:
name: html_doc_artifact
- name: Checkout latest doc_pages branch tip
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: doc_pages
path: previous_doc_state
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_and_publish_doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout main repo # the github-pages-deploy-action seems to require this step
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Download HTML doc build artifact
uses: alehechka/download-tartifact@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_html_doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
- name: Install NNCF and doc requirements
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build_schema_page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install and Build
run: |
pip install json-schema-for-humans
pip install .
python -c 'import jstyleson; from nncf.config import NNCFConfig; jstyleson.dump(NNCFConfig.schema(), open("./schema.json", "w"), indent=2)'
mkdir -p schema
# In the current approach the line below will replace the schema/index.html generated by a
# In the current approach the line below will replace the schema/index.html generated by a
# phony schema/index.rst. We only need the phony schema/index.rst at the sphinx-build stage so that
# the sphinx can generate valid links in the TOC for the JSON schema across all pages.
generate-schema-doc --deprecated-from-description schema.json schema/index.html
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/model_hub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
run:
shell: bash
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.8.10
python-version: 3.8.18
- name: Install NNCF and test requirements
run: make install-models-hub-torch

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
mypy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.8.10
python-version: 3.8.18
- name: Install NNCF
run: pip install -e .
- name: Install mypy
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pre-commit-linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
pre-commit:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.8.10
python-version: 3.8.18
- name: Install pre-commit package
run: make install-pre-commit
- name: Run pre-commit linter suite
Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:
common:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
lfs: true
- uses: actions/setup-python@v3
- uses: actions/setup-python@v5
with:
python-version: 3.8.10
python-version: 3.8.18
- name: Install NNCF and test requirements
run: make install-common-test
- name: Run common precommit test scope
Expand All @@ -40,12 +40,12 @@ jobs:
onnx:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
lfs: true
- uses: actions/setup-python@v3
- uses: actions/setup-python@v5
with:
python-version: 3.8.10
python-version: 3.8.18
- name: Install NNCF and test requirements
run: make install-onnx-test
- name: Run ONNX precommit test scope
Expand All @@ -66,12 +66,12 @@ jobs:
openvino:
runs-on: ubuntu-20.04-8-cores
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
lfs: true
- uses: actions/setup-python@v3
- uses: actions/setup-python@v5
with:
python-version: 3.8.10
python-version: 3.8.18
- name: Install NNCF and test requirements
run: make install-openvino-test
- name: Run OV precommit test scope
Expand Down Expand Up @@ -102,12 +102,12 @@ jobs:
run : |
sudo apt-get update
sudo apt-get --assume-yes install gcc g++ build-essential ninja-build libgl1-mesa-dev libglib2.0-0
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
lfs: true
- uses: actions/setup-python@v3
- uses: actions/setup-python@v5
with:
python-version: 3.8.10
python-version: 3.8.18
- name: Runner info
continue-on-error: true
run: |
Expand Down Expand Up @@ -143,12 +143,12 @@ jobs:
nvidia-smi
cat /proc/cpuinfo
nvcc --version
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
lfs: true
- uses: actions/setup-python@v3
- uses: actions/setup-python@v5
with:
python-version: 3.8.10
python-version: 3.8.18
- name: Install NNCF and test requirements
run: make install-torch-test
- name: Check CUDA
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/upload_coverage_for_develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ on:
coverage_artifact_name_in_pr:
required: true
type: string
coverage_flags:
coverage_flags:
required: true
type: string
type: string
secrets:
CODECOV_TOKEN:
required: true
Expand All @@ -24,7 +24,7 @@ jobs:
if: github.event.pull_request.merged == true
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3 # codecov uploader demands that the scanned files be present when uploading
- uses: actions/checkout@v4 # codecov uploader demands that the scanned files be present when uploading
with:
ref: ${{ inputs.merge_commit_sha }}
- uses: dawidd6/action-download-artifact@v2
Expand Down

0 comments on commit bdc144b

Please sign in to comment.