Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ updates:
schedule:
interval: "weekly"
day: "saturday"
cooldown:
default-days: 7
rebase-strategy: "disabled"
labels: ["autoupdate"]
groups:
Expand All @@ -17,6 +19,8 @@ updates:
schedule:
interval: "weekly"
day: "saturday"
cooldown:
default-days: 7
rebase-strategy: "disabled"
labels: ["autoupdate"]
groups:
Expand All @@ -29,6 +33,8 @@ updates:
schedule:
interval: "weekly"
day: "saturday"
cooldown:
default-days: 7
rebase-strategy: "disabled"
labels: ["autoupdate"]
groups:
Expand All @@ -40,6 +46,8 @@ updates:
schedule:
interval: "weekly"
day: "saturday"
cooldown:
default-days: 7
rebase-strategy: "disabled"
labels: ["autoupdate"]
groups:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build-sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ jobs:
- name: Checkout repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: 0

- name: Install conda-merge tool
Expand Down Expand Up @@ -238,7 +239,7 @@ jobs:
if: env.GH_EVENT_PR_OPEN == 'true' && steps.check_fork.outputs.is_fork == 'false'
env:
PR_NUM: ${{ github.event.number }}
uses: mshick/add-pr-comment@ec328af66588ab8f77cdeb2c264f14aba45bbf59 # v3.12.0.8.3.12.0
uses: mshick/add-pr-comment@ec328af66588ab8f77cdeb2c264f14aba45bbf59 # v3.12.0
with:
message-id: url_to_docs
message: |
Expand All @@ -265,6 +266,7 @@ jobs:
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: 0

- name: Remove docs [PR closed]
Expand All @@ -282,7 +284,7 @@ jobs:
git push tokened_docs gh-pages

- name: Modify the comment with URL to official documentation
uses: mshick/add-pr-comment@ec328af66588ab8f77cdeb2c264f14aba45bbf59 # v3.12.0.8.3.12.0
uses: mshick/add-pr-comment@ec328af66588ab8f77cdeb2c264f14aba45bbf59 # v3.12.0
with:
message-id: url_to_docs
find: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/bump-sycl-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Find latest intel/llvm driver release tag
id: driver
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/check-onemath.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:
- master
pull_request:

permissions: read-all
permissions:
contents: read

env:
environment-file: 'environments/environment.yml'
Expand Down Expand Up @@ -52,6 +53,7 @@ jobs:
- name: Checkout DPNP repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: 0

- name: Install conda-merge tool
Expand Down Expand Up @@ -110,6 +112,7 @@ jobs:
- name: Checkout DPNP repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: 0

- name: Download artifact
Expand Down Expand Up @@ -230,6 +233,7 @@ jobs:
- name: Checkout DPNP repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: 0

- name: Download artifact
Expand All @@ -241,6 +245,7 @@ jobs:
- name: Checkout oneMKL repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
repository: 'oneapi-src/oneMKL'
ref: 'develop'
path: ${{ env.onemkl-source-dir }}
Expand Down
24 changes: 21 additions & 3 deletions .github/workflows/conda-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ jobs:
- name: Checkout DPNP repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: 0

- name: Setup miniconda
Expand Down Expand Up @@ -91,17 +92,33 @@ jobs:
run: conda list

- name: Store conda paths as envs
env:
CONDA_SUBDIR: ${{ inputs.conda-subdir }}
run: |
echo "CONDA_BLD=$CONDA_PREFIX/conda-bld/${{ inputs.conda-subdir }}/" | tr "\\\\" '/' >> "$GITHUB_ENV"
echo "CONDA_BLD=$CONDA_PREFIX/conda-bld/$CONDA_SUBDIR/" | tr "\\\\" '/' >> "$GITHUB_ENV"

- name: Build conda package
id: build_conda_pkg
continue-on-error: true
run: conda-build --no-test --python "${{ env.python-conda-spec }}" --numpy 2.0 ${{ inputs.channels-list }} ${{ inputs.recipe-dir }}
env:
PYTHON_CONDA_SPEC: ${{ env.python-conda-spec }}
CHANNELS_LIST: ${{ inputs.channels-list }}
RECIPE_DIR: ${{ inputs.recipe-dir }}
run: |
# CHANNELS_LIST must stay unquoted to split into separate CLI args
# shellcheck disable=SC2086
conda-build --no-test --python "$PYTHON_CONDA_SPEC" --numpy 2.0 $CHANNELS_LIST "$RECIPE_DIR"

- name: ReBuild conda package
if: steps.build_conda_pkg.outcome == 'failure'
run: conda-build --no-test --python "${{ env.python-conda-spec }}" --numpy 2.0 ${{ inputs.channels-list }} ${{ inputs.recipe-dir }}
env:
PYTHON_CONDA_SPEC: ${{ env.python-conda-spec }}
CHANNELS_LIST: ${{ inputs.channels-list }}
RECIPE_DIR: ${{ inputs.recipe-dir }}
run: |
# CHANNELS_LIST must stay unquoted to split into separate CLI args
# shellcheck disable=SC2086
conda-build --no-test --python "$PYTHON_CONDA_SPEC" --numpy 2.0 $CHANNELS_LIST "$RECIPE_DIR"

- name: Upload artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
Expand Down Expand Up @@ -150,6 +167,7 @@ jobs:
- name: Checkout DPNP repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: ${{ env.fetch-depth }}
path: ${{ env.dpnp-repo-path }}

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/conda-package-cf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:
- master
pull_request:

permissions: read-all
permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/conda-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:
- master
pull_request:

permissions: read-all
permissions:
contents: read

env:
package-name: dpnp
Expand Down Expand Up @@ -71,6 +72,7 @@ jobs:
- name: Checkout DPNP repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: 0

- name: Setup miniconda
Expand Down Expand Up @@ -171,6 +173,7 @@ jobs:
- name: Checkout DPNP repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: ${{ env.fetch-depth }}
path: ${{ env.dpnp-repo-path }}

Expand Down Expand Up @@ -325,6 +328,7 @@ jobs:
- name: Checkout DPNP repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: ${{ env.fetch-depth }}
path: ${{ env.dpnp-repo-path }}

Expand Down Expand Up @@ -442,6 +446,7 @@ jobs:
- name: Checkout DPNP repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: ${{ env.fetch-depth }}
path: ${{ env.dpnp-repo-path }}

Expand Down Expand Up @@ -636,6 +641,7 @@ jobs:
- name: Checkout DPNP repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: ${{ env.fetch-depth }}

- name: Download artifact
Expand Down Expand Up @@ -720,6 +726,7 @@ jobs:
- name: Checkout DPNP repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: ${{ env.fetch-depth }}
path: ${{ env.dpnp-repo-path }}

Expand Down Expand Up @@ -793,6 +800,7 @@ jobs:
- name: Clone array API tests repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
repository: 'data-apis/array-api-tests'
path: ${{ env.array-api-tests-path }}
fetch-depth: ${{ env.fetch-depth }}
Expand Down Expand Up @@ -850,7 +858,7 @@ jobs:

- name: Post result to PR
if: ${{ github.event.pull_request && !github.event.pull_request.head.repo.fork }}
uses: mshick/add-pr-comment@ec328af66588ab8f77cdeb2c264f14aba45bbf59 # v3.12.0.8.3.12.0
uses: mshick/add-pr-comment@ec328af66588ab8f77cdeb2c264f14aba45bbf59 # v3.12.0
with:
message-id: array_api_results
message: |
Expand All @@ -876,6 +884,7 @@ jobs:
- name: Checkout DPNP repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: ${{ env.fetch-depth }}

- name: Setup miniconda
Expand All @@ -902,6 +911,7 @@ jobs:
- name: Checkout repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
repository: IntelPython/devops-tools
fetch-depth: ${{ env.fetch-depth }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cron-run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:

- name: Find the latest tag
id: find_latest_tag
uses: oprypin/find-latest-tag@6957ac556fa6d349727ecabfcaaf9f8e5ee37124 # 1.1.3
uses: oprypin/find-latest-tag@6957ac556fa6d349727ecabfcaaf9f8e5ee37124 # v1.1.3
with:
repository: IntelPython/dpnp
releases-only: false
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/generate_coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:
- name: Checkout repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: 0

- name: Install conda-merge tool
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/os-llvm-sycl-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,13 @@ jobs:
- name: Checkout repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: 0

- name: Checkout dpctl repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
repository: IntelPython/dpctl
fetch-depth: 0
path: ${{ env.dpctl-repo-path }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
- name: Checkout DPNP repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
# use commit hash to make "no-commit-to-branch" check passing
ref: ${{ github.sha }}

Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Security scan of GitHub Actions workflows (zizmor)

on:
push:
branches:
- master
pull_request:

permissions: {}

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
zizmor:
name: Scan GitHub Actions workflows

runs-on: ubuntu-latest
timeout-minutes: 10

permissions:
contents: read # needed to clone the repo

steps:
- name: Checkout DPNP repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Run zizmor
uses: zizmorcore/zizmor-action@70fb788f84895a7701f5643d103d587e460b5c99 # v0.6.3
with:
# Low/informational template-injection notes come from internally-defined
# values (no external input), so they are reported as annotations but do not gate CI
min-severity: medium
advanced-security: false
annotations: true
inputs: .github/
Loading