Skip to content

Commit af5e8ff

Browse files
Release v2.12.0 of NNCF to master
1 parent 0336e85 commit af5e8ff

File tree

554 files changed

+93545
-141332
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

554 files changed

+93545
-141332
lines changed

.github/workflows/api_changes_check.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: API changes check
2+
permissions: read-all
3+
24
on:
35
pull_request_target:
46
branches:
@@ -23,11 +25,11 @@ jobs:
2325
issues: write
2426
steps:
2527
- name: Download built HTML doc as artifact from previous step
26-
uses: alehechka/download-tartifact@v2
28+
uses: alehechka/download-tartifact@1195216b256562056097b175df17b167557f8681 # v2
2729
with:
2830
name: html_doc_artifact
2931
- name: Checkout latest doc_pages branch tip
30-
uses: actions/checkout@v4
32+
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
3133
with:
3234
ref: doc_pages
3335
path: previous_doc_state
@@ -39,7 +41,7 @@ jobs:
3941
echo ${CHANGED_FILES}
4042
CHANGED_FILES=$(echo $CHANGED_FILES | tr '\n' ' ')
4143
echo "changed_files=${CHANGED_FILES}" >> $GITHUB_OUTPUT
42-
- uses: actions/github-script@v6
44+
- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
4345
if: ${{ !(contains(steps.diff.outputs.changed_files, 'differ')) && contains(github.event.pull_request.labels.*.name, 'API') }}
4446
with:
4547
github-token: ${{ secrets.ADD_LABELS_WITH_REST_API }}
@@ -50,7 +52,7 @@ jobs:
5052
repo: context.repo.repo,
5153
name: "API"
5254
})
53-
- uses: actions/github-script@v6
55+
- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
5456
if: ${{ contains(steps.diff.outputs.changed_files, 'differ') }}
5557
with:
5658
github-token: ${{ secrets.ADD_LABELS_WITH_REST_API }}
@@ -62,7 +64,7 @@ jobs:
6264
labels: ["API"]
6365
})
6466
- name: Add release label
65-
uses: actions/github-script@v6
67+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
6668
if: ${{ contains(github.event.pull_request.base.ref, 'release_v') }}
6769
with:
6870
github-token: ${{ secrets.ADD_LABELS_WITH_REST_API }}

.github/workflows/assign_issue.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Take Issue
2+
permissions: read-all
23

34
on:
45
issue_comment:
@@ -15,7 +16,7 @@ jobs:
1516
timeout-minutes: 10
1617
steps:
1718
- name: take an issue
18-
uses: bdougie/[email protected]
19+
uses: bdougie/take-action@1439165ac45a7461c2d89a59952cd7d941964b87 # v1.6.1
1920
with:
2021
message: Thank you for looking into this issue! Please let us know if you have any questions or require any help.
2122
issueCurrentlyAssignedMessage: Thanks for being interested in this issue. It looks like this ticket is already assigned to a contributor. Please communicate with the assigned contributor to confirm the status of the issue.

.github/workflows/build_and_publish_doc.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: Build complete docs and publish to GH Pages
2+
permissions: read-all
3+
24
on:
35
push:
46
branches:
@@ -11,8 +13,6 @@ concurrency:
1113
group: ci-${{ github.head_ref }}-${{ github.workflow }}
1214
cancel-in-progress: true
1315

14-
permissions:
15-
contents: write
1616
jobs:
1717
call-build-html-doc:
1818
uses: ./.github/workflows/build_html_doc.yml
@@ -25,18 +25,18 @@ jobs:
2525
runs-on: ubuntu-20.04
2626
steps:
2727
- name: Checkout main repo # the github-pages-deploy-action seems to require this step
28-
uses: actions/checkout@v4
28+
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
2929
- name: Download HTML doc build artifact
30-
uses: alehechka/download-tartifact@v2
30+
uses: alehechka/download-tartifact@1195216b256562056097b175df17b167557f8681 # v2
3131
with:
3232
name: html_doc_artifact
3333
- name: Download schema doc build artifact
34-
uses: alehechka/download-tartifact@v2
34+
uses: alehechka/download-tartifact@1195216b256562056097b175df17b167557f8681 # v2
3535
with:
3636
name: schema_doc_artifact
3737
path: html_build/html
3838
- name: Publish built docs on Github Pages branch ${{ env.GH_PAGES_BRANCH }}
39-
uses: JamesIves/github-pages-deploy-action@v4
39+
uses: JamesIves/github-pages-deploy-action@5c6e9e9f3672ce8fd37b9856193d2a537941e66c # v4.6.1
4040
with:
4141
folder: html_build/html
4242
token: ${{ secrets.PUSH_TO_GH_PAGES_BRANCH }}

.github/workflows/build_html_doc.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: HTML documentation build
2+
permissions: read-all
3+
24
on:
35
workflow_call:
46
inputs:
@@ -10,7 +12,7 @@ jobs:
1012
runs-on: ubuntu-20.04
1113
steps:
1214
- name: Checkout
13-
uses: actions/checkout@v4
15+
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
1416
with:
1517
ref: ${{ inputs.ref }}
1618
- name: Install NNCF and doc requirements
@@ -21,7 +23,7 @@ jobs:
2123
run: |
2224
sphinx-build -M html docs/api/source html_build
2325
- name: Upload built HTMLs as job artifact
24-
uses: alehechka/upload-tartifact@v2
26+
uses: alehechka/upload-tartifact@a055d3a102b9ed9cfff1263bc713295047d0197e # v2
2527
with:
2628
name: html_doc_artifact
2729
path: html_build/html

.github/workflows/build_schema_page.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
name: Config schema HTML build
2+
permissions: read-all
3+
24
on:
35
workflow_call:
6+
47
jobs:
58
build-config-schema-html:
69
runs-on: ubuntu-20.04
710
steps:
811
- name: Checkout
9-
uses: actions/checkout@v4
12+
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
1013

1114
- name: Install and Build
1215
run: |
@@ -20,7 +23,7 @@ jobs:
2023
generate-schema-doc --deprecated-from-description schema.json schema/index.html
2124
2225
- name: Upload result as artifact
23-
uses: alehechka/upload-tartifact@v2
26+
uses: alehechka/upload-tartifact@a055d3a102b9ed9cfff1263bc713295047d0197e # v2
2427
with:
2528
name: schema_doc_artifact
2629
path: schema

.github/workflows/labeler.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: "Pull Request Labeler"
2+
permissions: read-all
3+
24
on: [pull_request_target]
35

46
jobs:
@@ -8,7 +10,7 @@ jobs:
810
pull-requests: write
911
runs-on: ubuntu-20.04
1012
steps:
11-
- uses: actions/labeler@v4
13+
- uses: actions/labeler@ac9175f8a1f3625fd0d4fb234536d26811351594 # v4.3.0
1214
with:
1315
repo-token: "${{ secrets.GITHUB_TOKEN }}"
1416
configuration-path: '.github/action_configs/labeler.yml'

.github/workflows/model_hub.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Model Hub
2+
permissions: read-all
23

34
on:
45
workflow_dispatch:
@@ -10,8 +11,8 @@ jobs:
1011
run:
1112
shell: bash
1213
steps:
13-
- uses: actions/checkout@v4
14-
- uses: actions/setup-python@v5
14+
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
15+
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
1516
with:
1617
python-version: 3.8.18
1718
- name: Install NNCF and test requirements

.github/workflows/mypy.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: mypy
2+
permissions: read-all
23

34
on:
45
pull_request:
@@ -11,13 +12,13 @@ jobs:
1112
mypy:
1213
runs-on: ubuntu-20.04
1314
steps:
14-
- uses: actions/checkout@v4
15-
- uses: actions/setup-python@v5
16-
with:
17-
python-version: 3.8.18
18-
- name: Install NNCF
19-
run: pip install -e .
20-
- name: Install mypy
21-
run: pip install mypy==1.8.0
22-
- name: Run mypy
23-
run: mypy --install-types --config-file=.mypy.ini --non-interactive
15+
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
16+
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
17+
with:
18+
python-version: 3.8.18
19+
- name: Install NNCF
20+
run: pip install -e .
21+
- name: Install mypy
22+
run: pip install mypy==1.8.0
23+
- name: Run mypy
24+
run: mypy --install-types --config-file=.mypy.ini --non-interactive

.github/workflows/nightly.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: nightly
2+
permissions: read-all
23

34
on:
45
workflow_dispatch:
@@ -9,5 +10,7 @@ jobs:
910
md-dead-link-check:
1011
runs-on: ubuntu-22.04
1112
steps:
12-
- uses: actions/checkout@v4
13-
- uses: AlexanderDokuchaev/[email protected]
13+
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
14+
- uses: AlexanderDokuchaev/md-dead-link-check@cc3ed55268899a1a6d5fd7068abbc4591eab1f74 # v0.9
15+
with:
16+
config: md_dead_link_check.toml

.github/workflows/post_pr_merge.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,17 @@
88
# PR commit is generated.
99

1010
name: Post-PR merge actions
11+
permissions: read-all
1112

1213
on:
1314
pull_request_target:
1415
branches:
1516
- develop
1617
types:
1718
- closed
19+
paths-ignore:
20+
- '**/*.md'
21+
- 'docs/**/*'
1822

1923
jobs:
2024
upload-coverage-common:
@@ -47,3 +51,33 @@ jobs:
4751
coverage_flags: OPENVINO
4852
secrets:
4953
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
54+
upload-coverage-torch-cpu:
55+
if: github.event.pull_request.merged == true
56+
uses: ./.github/workflows/upload_coverage_for_develop.yml
57+
with:
58+
merge_commit_sha: ${{ github.event.pull_request.merge_commit_sha }}
59+
last_sha_in_pr: ${{ github.event.pull_request.head.sha }}
60+
coverage_artifact_name_in_pr: coverage_pt_cpu
61+
coverage_flags: TORCH
62+
secrets:
63+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
64+
upload-coverage-torch-cuda:
65+
if: github.event.pull_request.merged == true
66+
uses: ./.github/workflows/upload_coverage_for_develop.yml
67+
with:
68+
merge_commit_sha: ${{ github.event.pull_request.merge_commit_sha }}
69+
last_sha_in_pr: ${{ github.event.pull_request.head.sha }}
70+
coverage_artifact_name_in_pr: coverage_pt_cuda
71+
coverage_flags: TORCH
72+
secrets:
73+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
74+
upload-coverage-tensorflow:
75+
if: github.event.pull_request.merged == true
76+
uses: ./.github/workflows/upload_coverage_for_develop.yml
77+
with:
78+
merge_commit_sha: ${{ github.event.pull_request.merge_commit_sha }}
79+
last_sha_in_pr: ${{ github.event.pull_request.head.sha }}
80+
coverage_artifact_name_in_pr: coverage_tensorflow
81+
coverage_flags: TENSORFLOW
82+
secrets:
83+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)