Skip to content

Commit d963347

Browse files
authored
Merge branch 'master' into add-helper-function
2 parents 97f1155 + 1daf4c9 commit d963347

File tree

148 files changed

+4428
-1131
lines changed

Some content is hidden

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

148 files changed

+4428
-1131
lines changed

.github/workflows/build-sphinx.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
name: Build and Deploy Docs
2727

2828
runs-on: ubuntu-22.04
29+
timeout-minutes: 60
2930

3031
permissions:
3132
# Needed to cancel any previous runs that are not completed for a given workflow
@@ -101,7 +102,7 @@ jobs:
101102
sudo apt-get install -y nvidia-cuda-toolkit clinfo
102103
103104
- name: Checkout repo
104-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
105+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
105106
with:
106107
fetch-depth: 0
107108

@@ -244,9 +245,10 @@ jobs:
244245
pull-requests: write
245246

246247
runs-on: ubuntu-latest
248+
timeout-minutes: 10
247249

248250
steps:
249-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
251+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
250252
with:
251253
fetch-depth: 0
252254

.github/workflows/check-onemath.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
actions: write
3030

3131
runs-on: 'ubuntu-latest'
32+
timeout-minutes: 5
3233

3334
steps:
3435
- name: Cancel Previous Runs
@@ -37,7 +38,7 @@ jobs:
3738
access_token: ${{ github.token }}
3839

3940
- name: Checkout DPNP repo
40-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
41+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
4142
with:
4243
fetch-depth: 0
4344

@@ -69,19 +70,20 @@ jobs:
6970
os: [ubuntu-22.04] # windows-2022 - no DFT support for Windows in oneMKL
7071

7172
runs-on: ${{ matrix.os }}
73+
timeout-minutes: 60
7274

7375
defaults:
7476
run:
7577
shell: ${{ matrix.os == 'windows-2022' && 'cmd /C CALL {0}' || 'bash -el {0}' }}
7678

7779
steps:
7880
- name: Checkout DPNP repo
79-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
81+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
8082
with:
8183
fetch-depth: 0
8284

8385
- name: Download artifact
84-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
86+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
8587
with:
8688
name: ${{ env.environment-file-name }}
8789
path: ${{ env.environment-file-loc }}
@@ -157,6 +159,7 @@ jobs:
157159
os: [ubuntu-22.04] # windows-2022 - no DFT support for Windows in oneMKL
158160

159161
runs-on: ${{ matrix.os }}
162+
timeout-minutes: 60
160163

161164
defaults:
162165
run:
@@ -167,18 +170,18 @@ jobs:
167170

168171
steps:
169172
- name: Checkout DPNP repo
170-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
173+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
171174
with:
172175
fetch-depth: 0
173176

174177
- name: Download artifact
175-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
178+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
176179
with:
177180
name: ${{ env.environment-file-name }}
178181
path: ${{ env.environment-file-loc }}
179182

180183
- name: Checkout oneMKL repo
181-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
184+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
182185
with:
183186
repository: 'oneapi-src/oneMKL'
184187
ref: 'develop'

.github/workflows/conda-package.yml

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
actions: write
3838

3939
runs-on: ${{ matrix.os }}
40+
timeout-minutes: 60
4041

4142
defaults:
4243
run:
@@ -53,7 +54,7 @@ jobs:
5354
access_token: ${{ github.token }}
5455

5556
- name: Checkout DPNP repo
56-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
57+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
5758
with:
5859
fetch-depth: 0
5960

@@ -118,6 +119,7 @@ jobs:
118119
needs: build
119120

120121
runs-on: ${{ matrix.os }}
122+
timeout-minutes: 100
121123

122124
defaults:
123125
run:
@@ -138,13 +140,13 @@ jobs:
138140

139141
steps:
140142
- name: Checkout DPNP repo
141-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
143+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
142144
with:
143145
fetch-depth: ${{ env.fetch-depth }}
144146
path: ${{ env.dpnp-repo-path }}
145147

146148
- name: Download artifact
147-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
149+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
148150
with:
149151
name: ${{ env.package-name }} ${{ runner.os }} Python ${{ matrix.python }}
150152
path: ${{ env.pkg-path-in-channel }}
@@ -245,6 +247,7 @@ jobs:
245247
needs: build
246248

247249
runs-on: ${{ matrix.os }}
250+
timeout-minutes: 120
248251

249252
defaults:
250253
run:
@@ -265,13 +268,13 @@ jobs:
265268

266269
steps:
267270
- name: Checkout DPNP repo
268-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
271+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
269272
with:
270273
fetch-depth: ${{ env.fetch-depth }}
271274
path: ${{ env.dpnp-repo-path }}
272275

273276
- name: Download artifact
274-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
277+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
275278
with:
276279
name: ${{ env.package-name }} ${{ runner.os }} Python ${{ matrix.python }}
277280
path: ${{ env.pkg-path-in-channel }}
@@ -406,6 +409,7 @@ jobs:
406409
os: [ubuntu-22.04, windows-2022]
407410

408411
runs-on: ${{ matrix.os }}
412+
timeout-minutes: 10
409413

410414
defaults:
411415
run:
@@ -421,17 +425,17 @@ jobs:
421425
422426
steps:
423427
- name: Checkout DPNP repo
424-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
428+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
425429
with:
426430
fetch-depth: ${{ env.fetch-depth }}
427431

428432
- name: Download artifact
429-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
433+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
430434
with:
431435
name: ${{ env.package-name }} ${{ runner.os }} Python ${{ matrix.python }}
432436

433437
- name: Download wheels artifact
434-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
438+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
435439
with:
436440
name: ${{ env.package-name }} ${{ runner.os }} Wheels Python ${{ matrix.python }}
437441

@@ -487,6 +491,7 @@ jobs:
487491
os: [ubuntu-22.04]
488492

489493
runs-on: ${{ matrix.os }}
494+
timeout-minutes: 15
490495

491496
defaults:
492497
run:
@@ -508,13 +513,13 @@ jobs:
508513

509514
steps:
510515
- name: Checkout DPNP repo
511-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
516+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
512517
with:
513518
fetch-depth: ${{ env.fetch-depth }}
514519
path: ${{ env.dpnp-repo-path }}
515520

516521
- name: Download artifact
517-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
522+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
518523
with:
519524
name: ${{ env.package-name }} ${{ runner.os }} Python ${{ env.python-ver }}
520525
path: ${{ env.pkg-path-in-channel }}
@@ -580,7 +585,7 @@ jobs:
580585
python -c "import dpnp; print(dpnp.__version__)"
581586
582587
- name: Clone array API tests repo
583-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
588+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
584589
with:
585590
repository: 'data-apis/array-api-tests'
586591
path: ${{ env.array-api-tests-path }}
@@ -649,6 +654,7 @@ jobs:
649654
needs: [upload]
650655

651656
runs-on: 'ubuntu-latest'
657+
timeout-minutes: 10
652658

653659
defaults:
654660
run:
@@ -660,7 +666,7 @@ jobs:
660666

661667
steps:
662668
- name: Checkout DPNP repo
663-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
669+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
664670
with:
665671
fetch-depth: ${{ env.fetch-depth }}
666672

@@ -686,7 +692,7 @@ jobs:
686692
activate-environment: ${{ env.cleanup-env-name }}
687693

688694
- name: Checkout repo
689-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
695+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
690696
with:
691697
repository: IntelPython/devops-tools
692698
fetch-depth: ${{ env.fetch-depth }}

.github/workflows/cron-run-tests.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
name: Run tests suite
22
on:
3-
# For Branch-Protection check. Only the default branch is supported. See
4-
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
5-
branch_protection_rule:
3+
# To be able to be triggered manually
4+
workflow_dispatch:
65
# To guarantee Maintained check is occasionally updated. See
76
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
87
schedule:
98
- cron: '28 2 * * *'
10-
workflow_dispatch:
119

1210
permissions: read-all
1311

@@ -26,6 +24,7 @@ jobs:
2624
if: github.event.repository.fork == false
2725

2826
runs-on: ${{ matrix.runner }}
27+
timeout-minutes: 60
2928

3029
defaults:
3130
run:

.github/workflows/generate_coverage.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ permissions: read-all
99
jobs:
1010
generate-coverage:
1111
name: Generate coverage and push to Coveralls.io
12+
1213
runs-on: ubuntu-latest
14+
timeout-minutes: 120
1315

1416
permissions:
1517
# Needed to cancel any previous runs that are not completed for a given workflow
@@ -60,7 +62,7 @@ jobs:
6062
sudo gem install coveralls-lcov
6163
6264
- name: Checkout repo
63-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
65+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
6466
with:
6567
fetch-depth: 0
6668

@@ -154,6 +156,7 @@ jobs:
154156
needs: generate-coverage
155157

156158
runs-on: ubuntu-latest
159+
timeout-minutes: 10
157160

158161
container: python:3-slim
159162

.github/workflows/openssf-scorecard.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,16 @@ on:
77
# For Branch-Protection check. Only the default branch is supported. See
88
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
99
branch_protection_rule:
10+
# To be able to be triggered manually
11+
workflow_dispatch:
1012
# To guarantee Maintained check is occasionally updated. See
1113
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
1214
schedule:
1315
- cron: '28 2 * * 1'
1416
- cron: '28 2 * * 4'
1517
push:
16-
branches: [ "master" ]
18+
branches:
19+
- master
1720

1821
# Declare default permissions as read only.
1922
permissions: read-all
@@ -22,6 +25,7 @@ jobs:
2225
analysis:
2326
name: Scorecard analysis
2427
runs-on: ubuntu-latest
28+
timeout-minutes: 10
2529
permissions:
2630
# Needed to upload the results to code-scanning dashboard.
2731
security-events: write
@@ -33,7 +37,7 @@ jobs:
3337

3438
steps:
3539
- name: "Checkout code"
36-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
40+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3741
with:
3842
persist-credentials: false
3943

@@ -68,6 +72,6 @@ jobs:
6872

6973
# Upload the results to GitHub's code scanning dashboard.
7074
- name: "Upload to code-scanning"
71-
uses: github/codeql-action/upload-sarif@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
75+
uses: github/codeql-action/upload-sarif@3c3833e0f8c1c83d449a7478aa59c036a9165498 # v3.29.11
7276
with:
7377
sarif_file: results.sarif
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Autoupdate pre-commit
2+
3+
on:
4+
# To be able to be triggered manually
5+
workflow_dispatch:
6+
# To guarantee Maintained check is occasionally updated. See
7+
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
8+
schedule:
9+
- cron: '28 2 * * 6' # Saturday at 02:28 UTC
10+
11+
jobs:
12+
autoupdate:
13+
name: Autoupdate
14+
15+
runs-on: ubuntu-latest
16+
timeout-minutes: 10
17+
18+
steps:
19+
- name: Checkout DPNP repo
20+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
21+
22+
- name: Set up python
23+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
24+
with:
25+
python-version: '3.13'
26+
27+
- name: Install pre-commit
28+
run: pip install pre-commit
29+
30+
- name: Run pre-commit autoupdate
31+
run: pre-commit autoupdate
32+
33+
- name: Create a PR with autoupdate changes
34+
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e #v7.0.8
35+
with:
36+
commit-message: 'chore: update pre-commit hooks'
37+
add-paths: .pre-commit-config.yaml
38+
branch: 'bot/pre-commit-autoupdate'
39+
delete-branch: true
40+
title: Weekly pre-commit autoupdate
41+
body: |
42+
This PR updates the `.pre-commit-config.yaml` using `pre-commit autoupdate`.
43+
labels: autoupdate

0 commit comments

Comments
 (0)