Skip to content

Commit 6127741

Browse files
committed
Merge branch 'master' into merge_to_gold
2 parents 8e0a535 + a27200b commit 6127741

File tree

94 files changed

+9068
-2521
lines changed

Some content is hidden

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

94 files changed

+9068
-2521
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"

.github/workflows/build-sphinx.yml

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
pull_request:
77
types: [opened, synchronize, reopened, closed]
88

9+
permissions: read-all
10+
911
env:
1012
GH_BOT_NAME: 'github-actions[bot]'
1113
GH_BOT_EMAIL: 'github-actions[bot]@users.noreply.github.com'
@@ -25,13 +27,21 @@ jobs:
2527

2628
runs-on: ubuntu-20.04
2729

30+
permissions:
31+
# Needed to cancel any previous runs that are not completed for a given workflow
32+
actions: write
33+
# Needed to deploy static files to GitHub Pages
34+
contents: write
35+
# Needed to add a comment to a pull request's issue
36+
pull-requests: write
37+
2838
env:
2939
python-ver: '3.9'
3040
CHANNELS: '-c dppy/label/dev -c intel -c conda-forge --override-channels'
3141

3242
steps:
3343
- name: Cancel Previous Runs
34-
uses: styfle/[email protected].0
44+
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
3545
with:
3646
access_token: ${{ github.token }}
3747

@@ -42,7 +52,7 @@ jobs:
4252
echo "$GITHUB_CONTEXT"
4353
4454
- name: Free Disk Space (Ubuntu)
45-
uses: jlumbroso/[email protected]
55+
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
4656
with:
4757
docker-images: false
4858

@@ -76,13 +86,13 @@ jobs:
7686
sudo apt-get install -y nvidia-cuda-toolkit clinfo
7787
7888
- name: Checkout repo
79-
uses: actions/[email protected]
89+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
8090
with:
8191
fetch-depth: 0
8292

8393
# https://github.com/marketplace/actions/setup-miniconda
8494
- name: Setup miniconda
85-
uses: conda-incubator/[email protected]
95+
uses: conda-incubator/setup-miniconda@11b562958363ec5770fef326fe8ef0366f8cbf8a # v3.0.1
8696
with:
8797
auto-update-conda: true
8898
python-version: ${{ env.python-ver }}
@@ -93,7 +103,7 @@ jobs:
93103
- name: Install sphinx dependencies
94104
run: |
95105
conda install sphinx sphinx_rtd_theme
96-
pip install sphinxcontrib-googleanalytics
106+
pip install sphinxcontrib-googleanalytics==0.4
97107
98108
- name: Install dpnp dependencies
99109
run: |
@@ -125,7 +135,7 @@ jobs:
125135
126136
# https://github.com/marketplace/actions/doxygen-action
127137
- name: Build backend docs
128-
uses: mattnotmitt/[email protected].5
138+
uses: mattnotmitt/doxygen-action@cbe72c8e402e8a3faa1f0b247ef90aa6c8e4ce74 # v1.9.8
129139
with:
130140
working-directory: 'dpnp/backend/doc'
131141

@@ -136,7 +146,7 @@ jobs:
136146
# The step is only used to build docs while pushing a PR to "master"
137147
- name: Deploy docs
138148
if: env.GH_EVENT_PUSH_UPSTREAM
139-
uses: peaceiris/[email protected]
149+
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3.9.3
140150
with:
141151
github_token: ${{ secrets.GITHUB_TOKEN }}
142152
publish_dir: ${{ env.PUBLISH_DIR }}
@@ -149,7 +159,7 @@ jobs:
149159
# The step is only used to build docs while pushing to PR branch
150160
- name: Publish pull-request docs
151161
if: env.GH_EVENT_OPEN_PR_UPSTREAM
152-
uses: peaceiris/[email protected]
162+
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3.9.3
153163
with:
154164
github_token: ${{ secrets.GITHUB_TOKEN }}
155165
publish_dir: ${{ env.PUBLISH_DIR }}
@@ -166,7 +176,7 @@ jobs:
166176
if: env.GH_EVENT_OPEN_PR_UPSTREAM
167177
env:
168178
PR_NUM: ${{ github.event.number }}
169-
uses: mshick/[email protected].1
179+
uses: mshick/add-pr-comment@b8f338c590a895d50bcbfa6c5859251edc8952fc # v2.8.2
170180
with:
171181
message: |
172182
View rendered docs @ https://intelpython.github.io/dpnp/pull/${{ env.PR_NUM }}/index.html
@@ -180,10 +190,16 @@ jobs:
180190
181191
needs: build-and-deploy
182192

193+
permissions:
194+
# Needed to remove docs for closed pull request from the repo
195+
contents: write
196+
# Needed to modify a comment in the pull request's issue
197+
pull-requests: write
198+
183199
runs-on: ubuntu-20.04
184200

185201
steps:
186-
- uses: actions/[email protected]
202+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
187203
with:
188204
fetch-depth: 0
189205

@@ -202,7 +218,7 @@ jobs:
202218
git push tokened_docs gh-pages
203219
204220
- name: Modify the comment with URL to official documentation
205-
uses: mshick/[email protected].1
221+
uses: mshick/add-pr-comment@b8f338c590a895d50bcbfa6c5859251edc8952fc # v2.8.2
206222
with:
207223
find: |
208224
View rendered docs @.+

.github/workflows/conda-package.yml

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
- master
77
pull_request:
88

9+
permissions: read-all
10+
911
env:
1012
PACKAGE_NAME: dpnp
1113
MODULE_NAME: dpnp
@@ -58,6 +60,10 @@ jobs:
5860
python: ['3.9', '3.10', '3.11']
5961
os: [ubuntu-20.04, windows-latest]
6062

63+
permissions:
64+
# Needed to cancel any previous runs that are not completed for a given workflow
65+
actions: write
66+
6167
runs-on: ${{ matrix.os }}
6268

6369
defaults:
@@ -68,17 +74,17 @@ jobs:
6874

6975
steps:
7076
- name: Cancel Previous Runs
71-
uses: styfle/[email protected].0
77+
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
7278
with:
7379
access_token: ${{ github.token }}
7480

7581
- name: Checkout DPNP repo
76-
uses: actions/[email protected]
82+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
7783
with:
7884
fetch-depth: 0
7985

8086
- name: Setup miniconda
81-
uses: conda-incubator/[email protected]
87+
uses: conda-incubator/setup-miniconda@11b562958363ec5770fef326fe8ef0366f8cbf8a # v3.0.1
8288
with:
8389
auto-update-conda: true
8490
python-version: ${{ matrix.python }}
@@ -96,10 +102,10 @@ jobs:
96102
(echo CONDA_BLD=%CONDA_PREFIX%\conda-bld\win-64\) >> %GITHUB_ENV%
97103
98104
- name: Install conda-build
99-
run: conda install conda-build
105+
run: conda install conda-build=3.28.4
100106

101107
- name: Cache conda packages
102-
uses: actions/cache@v4
108+
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
103109
env:
104110
CACHE_NUMBER: 1 # Increase to reset cache
105111
with:
@@ -114,7 +120,7 @@ jobs:
114120
run: conda build --no-test --python ${{ matrix.python }} ${{ env.CHANNELS }} conda-recipe
115121

116122
- name: Upload artifact
117-
uses: actions/[email protected]
123+
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
118124
with:
119125
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
120126
path: ${{ env.CONDA_BLD }}${{ env.PACKAGE_NAME }}-*.tar.bz2
@@ -147,7 +153,7 @@ jobs:
147153

148154
steps:
149155
- name: Download artifact
150-
uses: actions/[email protected]
156+
uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935 # v4.1.1
151157
with:
152158
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
153159
path: ${{ env.pkg-path-in-channel }}
@@ -158,7 +164,7 @@ jobs:
158164
tar -xvf ${{ env.pkg-path-in-channel }}/${{ env.PACKAGE_NAME }}-*.tar.bz2 -C ${{ env.extracted-pkg-path }}
159165
160166
- name: Setup miniconda
161-
uses: conda-incubator/[email protected]
167+
uses: conda-incubator/setup-miniconda@11b562958363ec5770fef326fe8ef0366f8cbf8a # v3.0.1
162168
with:
163169
auto-update-conda: true
164170
python-version: ${{ matrix.python }}
@@ -167,7 +173,7 @@ jobs:
167173

168174
# Needed to be able to run conda index
169175
- name: Install conda-build
170-
run: conda install conda-build
176+
run: conda install conda-build=3.28.4
171177

172178
- name: Create conda channel
173179
run: conda index ${{ env.channel-path }}
@@ -190,7 +196,7 @@ jobs:
190196
TEST_CHANNELS: '-c ${{ env.channel-path }} ${{ env.CHANNELS }}'
191197

192198
- name: Cache conda packages
193-
uses: actions/cache@v4
199+
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
194200
env:
195201
CACHE_NUMBER: 1 # Increase to reset cache
196202
with:
@@ -248,7 +254,7 @@ jobs:
248254

249255
steps:
250256
- name: Download artifact
251-
uses: actions/[email protected]
257+
uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935 # v4.1.1
252258
with:
253259
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
254260
path: ${{ env.pkg-path-in-channel }}
@@ -268,7 +274,7 @@ jobs:
268274
dir ${{ env.extracted-pkg-path }}
269275
270276
- name: Setup miniconda
271-
uses: conda-incubator/[email protected]
277+
uses: conda-incubator/setup-miniconda@11b562958363ec5770fef326fe8ef0366f8cbf8a # v3.0.1
272278
with:
273279
auto-update-conda: true
274280
python-version: ${{ matrix.python }}
@@ -283,7 +289,7 @@ jobs:
283289
284290
# Needed to be able to run conda index
285291
- name: Install conda-build
286-
run: conda install conda-build
292+
run: conda install conda-build=3.28.4
287293

288294
- name: Create conda channel
289295
run: conda index ${{ env.channel-path }}
@@ -314,7 +320,7 @@ jobs:
314320
run: more lockfile
315321

316322
- name: Cache conda packages
317-
uses: actions/cache@v4
323+
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
318324
env:
319325
CACHE_NUMBER: 1 # Increase to reset cache
320326
with:
@@ -382,12 +388,12 @@ jobs:
382388
383389
steps:
384390
- name: Download artifact
385-
uses: actions/[email protected]
391+
uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935 # v4.1.1
386392
with:
387393
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
388394

389395
- name: Setup miniconda
390-
uses: conda-incubator/[email protected]
396+
uses: conda-incubator/setup-miniconda@11b562958363ec5770fef326fe8ef0366f8cbf8a # v3.0.1
391397
with:
392398
auto-update-conda: true
393399
python-version: ${{ matrix.python }}
@@ -410,7 +416,7 @@ jobs:
410416
run:
411417
shell: bash -el {0}
412418
steps:
413-
- uses: conda-incubator/[email protected]
419+
- uses: conda-incubator/setup-miniconda@11b562958363ec5770fef326fe8ef0366f8cbf8a # v3.0.1
414420
with:
415421
run-post: false
416422
channel-priority: "disabled"
@@ -421,7 +427,7 @@ jobs:
421427
run: conda install anaconda-client
422428

423429
- name: Checkout repo
424-
uses: actions/[email protected]
430+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
425431
with:
426432
repository: IntelPython/devops-tools
427433
fetch-depth: 0

.github/workflows/generate_coverage.yaml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,17 @@ on:
44
push:
55
branches: [master]
66

7+
permissions: read-all
8+
79
jobs:
810
generate-coverage:
911
name: Generate coverage and push to Coveralls.io
1012
runs-on: ubuntu-20.04
1113

14+
permissions:
15+
# Needed to cancel any previous runs that are not completed for a given workflow
16+
actions: write
17+
1218
defaults:
1319
run:
1420
shell: bash -l {0}
@@ -19,17 +25,17 @@ jobs:
1925

2026
steps:
2127
- name: Cancel Previous Runs
22-
uses: styfle/[email protected].0
28+
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
2329
with:
2430
access_token: ${{ github.token }}
2531

2632
- name: Checkout repo
27-
uses: actions/[email protected]
33+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2834
with:
2935
fetch-depth: 0
3036

3137
- name: Setup miniconda
32-
uses: conda-incubator/[email protected]
38+
uses: conda-incubator/setup-miniconda@11b562958363ec5770fef326fe8ef0366f8cbf8a # v3.0.1
3339
with:
3440
auto-update-conda: true
3541
python-version: ${{ env.python-ver }}
@@ -54,7 +60,7 @@ jobs:
5460
5561
- name: Build dpnp with coverage
5662
id: build_coverage
57-
uses: nick-fields/retry@v2.9.0
63+
uses: nick-fields/retry@7152eba30c6575329ac0576536151aca5a72780e # v3.0.0
5864
with:
5965
shell: bash
6066
timeout_minutes: 60
@@ -73,7 +79,7 @@ jobs:
7379
- name: Install coverall dependencies
7480
run: |
7581
sudo gem install coveralls-lcov
76-
pip install coveralls==3.2.0
82+
pip install coveralls==3.3.1
7783
7884
- name: Upload coverage data to coveralls.io
7985
run: |
@@ -96,7 +102,7 @@ jobs:
96102
steps:
97103
- name: Finished
98104
run: |
99-
pip3 install --upgrade coveralls
100-
coveralls --finish
105+
pip3 install --upgrade coveralls==3.3.1
106+
coveralls --service=github --finish
101107
env:
102108
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)