|
| 1 | +jobs: |
| 2 | + |
| 3 | +- job: myCodeStyle |
| 4 | + displayName: Code style |
| 5 | + |
| 6 | + pool: |
| 7 | + vmImage: 'ubuntu-20.04' |
| 8 | + |
| 9 | + steps: |
| 10 | + |
| 11 | + - bash: | |
| 12 | + . ./scripts/set_ci_env.sh |
| 13 | + echo ========================= Conda ENV =============================== |
| 14 | + conda create -q -y -n CondaCodeStyle python=3.8 conda-build conda-verify \ |
| 15 | + numpy cython pytest \ |
| 16 | + pycodestyle autopep8 black |
| 17 | + . /usr/share/miniconda/etc/profile.d/conda.sh |
| 18 | + conda activate CondaCodeStyle |
| 19 | + echo ========================= Run style check =============================== |
| 20 | + # variables are not used but have to be installed for setuptools |
| 21 | + export ONEAPI_ROOT=/opt/intel |
| 22 | + export MKLROOT=/opt/intel |
| 23 | + python ./setup.py style |
| 24 | + echo ========================= style check finished =============================== |
| 25 | +
|
| 26 | +- job: test_valgrind |
| 27 | + displayName: Valgrind |
| 28 | + |
| 29 | + pool: |
| 30 | + vmImage: 'ubuntu-20.04' |
| 31 | + |
| 32 | + steps: |
| 33 | + |
| 34 | + - bash: | |
| 35 | + . ./scripts/set_ci_env.sh |
| 36 | + echo ========================= build DPNP =============================== |
| 37 | + ./0.build.sh |
| 38 | + echo ========================= run valgrind =============================== |
| 39 | + export PYTHONMALLOC=malloc |
| 40 | + valgrind --show-leak-kinds=definite --log-file=/tmp/valgrind-output \ |
| 41 | + python -m pytest tests/third_party/cupy/math_tests/test_arithmetic.py \ |
| 42 | + -vv --valgrind --valgrind-log=/tmp/valgrind-output |
| 43 | +
|
| 44 | +- job: mycodecoverage |
| 45 | + displayName: Code coverage |
| 46 | + pool: |
| 47 | + vmImage: 'ubuntu-20.04' |
| 48 | + steps: |
| 49 | + - bash: | |
| 50 | + . ./scripts/set_ci_env.sh |
| 51 | + echo ========================= Conda ENV =============================== |
| 52 | + conda create -q -y -n CondaCodeStyle python=3.8 conda-build conda-verify \ |
| 53 | + numpy cython pytest \ |
| 54 | + pycodestyle autopep8 \ |
| 55 | + cython pytest pytest-cov |
| 56 | + . /usr/share/miniconda/etc/profile.d/conda.sh |
| 57 | + conda activate CondaCodeStyle |
| 58 | + echo ========================= build DPNP =============================== |
| 59 | + ./0.build.sh |
| 60 | + echo ========================= run code coverage =============================== |
| 61 | + pytest --cov-report xml:coverage.xml --cov-report term-missing --cov=dpnp |
| 62 | + export CODECOV_TOKEN="1158b545-b00a-4a84-a6f9-2bc2c4265d8b" |
| 63 | + bash <(curl -s https://codecov.io/bash) -f coverage.xml |
| 64 | +
|
| 65 | +- job: ubuntu2004 |
| 66 | + displayName: Ubuntu 20.04 |
| 67 | + pool: |
| 68 | + vmImage: 'ubuntu-20.04' |
| 69 | + strategy: |
| 70 | + matrix: |
| 71 | + Python37: |
| 72 | + python.version: '3.7' |
| 73 | + Python38: |
| 74 | + python.version: '3.8' |
| 75 | + Python39: |
| 76 | + python.version: '3.9' |
| 77 | + steps: |
| 78 | + - task: UsePythonVersion@0 |
| 79 | + inputs: |
| 80 | + versionSpec: '$(python.version)' |
| 81 | + displayName: 'Use Python $(python.version)' |
| 82 | + - bash: | |
| 83 | + . ./scripts/set_ci_env.sh |
| 84 | + echo ========================= build DPNP =============================== |
| 85 | + ./0.build.sh |
| 86 | + echo ========================= run pytest =============================== |
| 87 | + pytest |
| 88 | +
|
| 89 | +# - job: ubuntu1804 |
| 90 | +# displayName: make package |
| 91 | + |
| 92 | +# pool: |
| 93 | +# vmImage: 'ubuntu-18.04' |
| 94 | + |
| 95 | +# steps: |
| 96 | +# - script: | |
| 97 | +# wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB |
| 98 | +# sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB |
| 99 | +# rm GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB |
| 100 | +# echo "deb https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list |
| 101 | +# sudo add-apt-repository -y "deb https://apt.repos.intel.com/oneapi all main" |
| 102 | +# sudo add-apt-repository -y ppa:intel-opencl/intel-opencl |
| 103 | +# sudo apt-get update |
| 104 | +# sudo apt-get install \ |
| 105 | +# intel-oneapi-common-vars \ |
| 106 | +# intel-oneapi-common-licensing \ |
| 107 | +# intel-oneapi-mkl-devel \ |
| 108 | +# intel-oneapi-tbb \ |
| 109 | +# intel-oneapi-dpcpp-compiler \ |
| 110 | +# intel-oneapi-dev-utilities \ |
| 111 | +# intel-oneapi-libdpstd-devel \ |
| 112 | +# cmake \ |
| 113 | +# opencl-headers \ |
| 114 | +# libze-loader \ |
| 115 | +# libze-intel-gpu |
| 116 | +# # sudo bash -c 'echo libintelocl.so > /etc/OpenCL/vendors/intel-cpu.icd' |
| 117 | +# # sudo mv -f /opt/intel/oneapi/compiler/latest/linux/lib/oclfpga /opt/intel/oneapi/compiler/latest/linux/lib/oclfpga_ |
| 118 | + |
| 119 | +# - script: | |
| 120 | +# conda create -q -y -n CB python=3.8 conda-build conda-verify |
| 121 | +# export ONEAPI_ROOT=/opt/intel/oneapi |
| 122 | +# . /usr/share/miniconda/etc/profile.d/conda.sh |
| 123 | +# conda activate CB |
| 124 | +# conda build --override-channels -c conda-forge -c intel conda-recipe |
0 commit comments