Skip to content

Commit f37175f

Browse files
authored
Merge branch 'master' into creation_funcs_docs
2 parents 0987f19 + a002bde commit f37175f

Some content is hidden

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

57 files changed

+2729
-1544
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 & 12 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 }}
@@ -110,8 +120,7 @@ jobs:
110120
run: conda list
111121

112122
- name: Build library
113-
run: |
114-
CC=icx CXX=icpx python setup.py develop -G Ninja -- -DDPCTL_MODULE_PATH=$(python -m dpctl --cmakedir)
123+
run: python scripts/build_locally.py
115124

116125
- name: Build docs
117126
run: make html
@@ -126,7 +135,7 @@ jobs:
126135
127136
# https://github.com/marketplace/actions/doxygen-action
128137
- name: Build backend docs
129-
uses: mattnotmitt/[email protected].5
138+
uses: mattnotmitt/doxygen-action@cbe72c8e402e8a3faa1f0b247ef90aa6c8e4ce74 # v1.9.8
130139
with:
131140
working-directory: 'dpnp/backend/doc'
132141

@@ -137,7 +146,7 @@ jobs:
137146
# The step is only used to build docs while pushing a PR to "master"
138147
- name: Deploy docs
139148
if: env.GH_EVENT_PUSH_UPSTREAM
140-
uses: peaceiris/[email protected]
149+
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3.9.3
141150
with:
142151
github_token: ${{ secrets.GITHUB_TOKEN }}
143152
publish_dir: ${{ env.PUBLISH_DIR }}
@@ -150,7 +159,7 @@ jobs:
150159
# The step is only used to build docs while pushing to PR branch
151160
- name: Publish pull-request docs
152161
if: env.GH_EVENT_OPEN_PR_UPSTREAM
153-
uses: peaceiris/[email protected]
162+
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3.9.3
154163
with:
155164
github_token: ${{ secrets.GITHUB_TOKEN }}
156165
publish_dir: ${{ env.PUBLISH_DIR }}
@@ -167,7 +176,7 @@ jobs:
167176
if: env.GH_EVENT_OPEN_PR_UPSTREAM
168177
env:
169178
PR_NUM: ${{ github.event.number }}
170-
uses: mshick/[email protected].1
179+
uses: mshick/add-pr-comment@b8f338c590a895d50bcbfa6c5859251edc8952fc # v2.8.2
171180
with:
172181
message: |
173182
View rendered docs @ https://intelpython.github.io/dpnp/pull/${{ env.PR_NUM }}/index.html
@@ -181,10 +190,16 @@ jobs:
181190
182191
needs: build-and-deploy
183192

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+
184199
runs-on: ubuntu-20.04
185200

186201
steps:
187-
- uses: actions/[email protected]
202+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
188203
with:
189204
fetch-depth: 0
190205

@@ -203,7 +218,7 @@ jobs:
203218
git push tokened_docs gh-pages
204219
205220
- name: Modify the comment with URL to official documentation
206-
uses: mshick/[email protected].1
221+
uses: mshick/add-pr-comment@b8f338c590a895d50bcbfa6c5859251edc8952fc # v2.8.2
207222
with:
208223
find: |
209224
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: 10 additions & 4 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

0 commit comments

Comments
 (0)