Skip to content

Commit f3bf22e

Browse files
authored
Change code coverage collection in Azure (#1013)
* Change code coverage collection in Azure
1 parent 4cc7e6f commit f3bf22e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

scripts/azure-pipelines.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,18 @@ jobs:
5353
vmImage: 'ubuntu-20.04'
5454
steps:
5555
- bash: |
56-
echo ========================= Conda ENV =================================
56+
echo ============================================ Conda ENV =============================================
5757
conda create -q -y -n CondaCodeCov python=3.8 conda-build conda-verify \
58-
numpy=1.20.1 cython pytest \
59-
pycodestyle autopep8 \
60-
cython pytest pytest-cov
58+
numpy cython pytest pytest-cov pycodestyle autopep8 \
59+
dpctl mkl-devel-dpcpp tbb-devel dpcpp_linux-64 cmake=3.19 \
60+
-c dppy/label/dev -c intel -c conda-forge
6161
. /usr/share/miniconda/etc/profile.d/conda.sh
6262
conda activate CondaCodeCov
63-
echo ========================= CI ENV ====================================
64-
. ./scripts/set_ci_env.sh
65-
echo ========================= build DPNP ================================
66-
./0.build.sh
67-
echo ========================= run code coverage =========================
63+
echo ============================================ build DPNP ============================================
64+
python setup.py build_clib
65+
CC=dpcpp python setup.py build_ext --inplace
66+
echo ============================================ run code coverage =====================================
67+
export OCL_ICD_FILENAMES=libintelocl.so
6868
pytest --cov-report xml:coverage.xml --cov-report term-missing --cov=dpnp
6969
export CODECOV_TOKEN="1158b545-b00a-4a84-a6f9-2bc2c4265d8b"
7070
bash <(curl -s https://codecov.io/bash) -f coverage.xml

0 commit comments

Comments
 (0)