Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
8558819
Create codecov.yml
icfaust Dec 11, 2024
b2f74f7
Update codecov.yml
icfaust Dec 11, 2024
87d4e88
Update codecov.yml
icfaust Dec 11, 2024
9f9c381
Update codecov.yml
icfaust Dec 11, 2024
fe68b6c
Update ci.yml
icfaust Dec 11, 2024
8abc831
Update codecov.yml
icfaust Dec 11, 2024
3ef0e89
Update codecov.yml
icfaust Dec 11, 2024
a66e6e5
Create test.yml
icfaust Dec 11, 2024
d949488
Update test.yml
icfaust Dec 11, 2024
b8c430b
Update test.yml
icfaust Dec 11, 2024
98b9cbf
Update codecov.yml
icfaust Dec 11, 2024
007a144
Update test.yml
icfaust Dec 11, 2024
3bf647a
Update test.yml
icfaust Dec 11, 2024
5f98478
Update test.yml
icfaust Dec 11, 2024
12d836b
Update test.yml
icfaust Dec 11, 2024
15d0b00
Merge branch 'uxlfoundation:main' into master
icfaust Dec 11, 2024
ba67917
Update ci.yml
icfaust Dec 11, 2024
58cfbd8
Update test.yml
icfaust Dec 11, 2024
99cb4d4
Update test.yml
icfaust Dec 11, 2024
7607c63
Update test.yml
icfaust Dec 11, 2024
47e4ed3
Update test.yml
icfaust Dec 11, 2024
3b66f63
Update ci.yml
icfaust Dec 11, 2024
a0f6df2
Update codecov.yml
icfaust Dec 11, 2024
f288952
Update codecov.yml
icfaust Dec 11, 2024
b057bf1
Update codecov.yml
icfaust Dec 11, 2024
791075a
Update test.yml
icfaust Dec 11, 2024
441f5cd
Update test.yml
icfaust Dec 11, 2024
ebf04c8
Update codecov.yml
icfaust Dec 11, 2024
b80b2ba
Update ci.yml
icfaust Dec 11, 2024
16a6efd
Update test.yml
icfaust Dec 11, 2024
9dbf451
Update ci.yml
icfaust Dec 11, 2024
dc474d6
Update ci.yml
icfaust Dec 11, 2024
77b609d
Update ci.yml
icfaust Dec 11, 2024
d244f32
Update codecov.yml
icfaust Dec 11, 2024
3dc9cf5
Update test.yml
icfaust Dec 11, 2024
28f1664
Update codecov.yml
icfaust Dec 11, 2024
6f83753
Update codecov.yml
icfaust Dec 11, 2024
a1e8d04
Update test.yml
icfaust Dec 11, 2024
1da8323
Update ci.yml
icfaust Dec 11, 2024
5fbf187
Update ci.yml
icfaust Dec 11, 2024
bb7b208
Update codecov.yml
icfaust Dec 11, 2024
7c36b21
Update codecov.yml
icfaust Dec 12, 2024
0dfd4f0
Update codecov.yml
icfaust Dec 12, 2024
ca67d81
Update __init__.py
icfaust Dec 12, 2024
f17e366
Update codecov.yml
icfaust Dec 12, 2024
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
29 changes: 17 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
name: CI
on:
pull_request:
branches: [ "main" ]
branches: [ "master" ]
push:
branches:
- main
- master
workflow_dispatch:

permissions: read-all
Expand Down Expand Up @@ -139,14 +139,16 @@ jobs:
export COVERAGE_FILE=$(pwd)/.coverage.sklearn
if [ "${{ steps.set-env.outputs.DPCFLAG }}" == "" ]; then export CPU=cpu; fi
bash .ci/scripts/run_sklearn_tests.sh $CPU
- name: Archive coverage data
- name: Create coverage report
run: |
source venv/bin/activate
coverage combine .coverage.sklearnex .coverage.sklearn
coverage xml -o coverage.lnx${{ matrix.PYTHON_VERSION }}_${{ matrix.SKLEARN_VERSION }}.xml
- name: Archive coverage report
uses: actions/upload-artifact@v4
with:
name: coverage_lnx_Py${{ matrix.PYTHON_VERSION }}_${{ matrix.SKLEARN_VERSION }}
path: |
.coverage.sklearn
.coverage.sklearnex
include-hidden-files: true
path: coverage.lnx${{ matrix.PYTHON_VERSION }}_${{ matrix.SKLEARN_VERSION }}.xml
- name: Sklearn testing [preview]
run: |
source venv/bin/activate
Expand Down Expand Up @@ -282,14 +284,17 @@ jobs:
set COVERAGE_FILE=%cd%\.coverage.sklearn
if "${{ steps.set-env.outputs.DPCFLAG }}"=="" set CPU=cpu
bash .ci/scripts/run_sklearn_tests.sh %CPU%
- name: Archive coverage data
- name: Create coverage report
shell: cmd
run: |
call .\venv\Scripts\activate.bat
coverage combine .coverage.sklearnex .coverage.sklearn
coverage xml -o coverage.win${{ matrix.PYTHON_VERSION }}_${{ matrix.SKLEARN_VERSION }}.xml
- name: Archive coverage report
uses: actions/upload-artifact@v4
with:
name: coverage_win_Py${{ matrix.PYTHON_VERSION }}_${{ matrix.SKLEARN_VERSION }}
path: |
.coverage.sklearn
.coverage.sklearnex
include-hidden-files: true
path: coverage.win${{ matrix.PYTHON_VERSION }}_${{ matrix.SKLEARN_VERSION }}.xml
- name: Sklearn testing [preview]
shell: cmd
run: |
Expand Down
56 changes: 56 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
#===============================================================================
# Copyright 2024 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#===============================================================================
name: codecov
on:
workflow_run:
workflows: [CI]
types:
- completed
workflow_dispatch:
permissions: read-all
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref_name }}-${{ github.event.number || github.sha }}
cancel-in-progress: true

jobs:
upload_coverage:
runs-on: ubuntu-24.04
if: ${{ github.event.workflow_run.conclusion == 'success' }}
name: Codecov
steps:
- name: Checkout Scikit-learn-intelex
uses: actions/checkout@v4
- name: 'Download artifact'
uses: actions/download-artifact@v4
with:
path: coverage
github-token: ${{ github.token }}
run-id: ${{ github.event.workflow_run.id }}
merge-multiple: true
- name: Install codecov cli
run: |
curl -Os https://cli.codecov.io/latest/linux/codecov
chmod +x codecov
- name: Upload to codecov
run: |
export PR=$("$GITHUB_REF" | awk -F / '{print $3}')
echo $PR
if [ -n "${PR}" ]; then export PR="-P ${PR}"; fi
echo here
echo $PR
export CODECOV_NAME=CI-${{ github.event.number }}-${{ github.sha }}
export SHA=${{ github.event.workflow_run.head_sha }}
./codecov --verbose upload-process --fail-on-error -t ${{ secrets.CODECOV_TOKEN }} -n $CODECOV_NAME -C $SHA -F github -s ./coverage $PR
72 changes: 72 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
#===============================================================================
# Copyright 2024 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#===============================================================================

name: test
on:
workflow_dispatch:

permissions: read-all

concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref_name }}-${{ github.event.number || github.sha }}
cancel-in-progress: true

env:
DPCTL_VERSION: 0.18.1
DPNP_VERSION: 0.16.0
DPCTL_PY_VERSIONS: '3.9\|3.11'

jobs:
sklearn_lnx:
strategy:
fail-fast: false
matrix:
include:
- PYTHON_VERSION: "3.10"
SKLEARN_VERSION: "1.2"
name: LinuxNightly/pip Python${{ matrix.PYTHON_VERSION }}_Sklearn${{ matrix.SKLEARN_VERSION }}
runs-on: ubuntu-24.04
timeout-minutes: 120

steps:
- name: Checkout Scikit-learn-intelex
uses: actions/checkout@v4
- name: Get run ID of "CI" workflow
id: get-run-id
run: |
OTHER_REPO="icfaust/scikit-learn-intelex"
WF_NAME="CI"
JQ_QUERY='map(select(.event == "workflow_dispatch" or .event == "schedule")) | .[0].databaseId'
RUN_ID=`gh run --repo ${OTHER_REPO} list --workflow "${WF_NAME}" --json databaseId,event --status success --jq "${JQ_QUERY}"`
echo "Detected latest run id of ${RUN_ID} for workflow ${WF_NAME}"
echo "run-id=${RUN_ID}" >> "$GITHUB_OUTPUT"
env:
GH_TOKEN: ${{ github.token }}
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: coverage
github-token: ${{ github.token }}
run-id: ${{ steps.get-run-id.outputs.run-id }}
merge-multiple: true
- name: Install dependencies
run: |
curl -Os https://cli.codecov.io/latest/linux/codecov
chmod +x codecov
- name: Upload to codecov
run: |
export CODECOV_NAME=CI-${{ github.event.number }}-${{ github.sha }}
./codecov --verbose upload-process --fail-on-error -t ${{ secrets.CODECOV_TOKEN }} -n "${CODECOV_NAME}" -F github -s ./coverage
1 change: 1 addition & 0 deletions onedal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
except ImportError:
_is_spmd_backend = False

print("nothing")

__all__ = ["covariance", "decomposition", "ensemble", "neighbors", "primitives", "svm"]

Expand Down
Loading