11
11
12
12
env :
13
13
ONEAPI_ROOT : /opt/intel/oneapi
14
- GTEST_ROOT : /home/runner/work/googletest-release-1.10 .0/install
14
+ GTEST_ROOT : /home/runner/work/googletest-release-1.11 .0/install
15
15
16
16
steps :
17
17
- name : Cancel Previous Runs
29
29
30
30
- name : Install Intel OneAPI
31
31
run : |
32
- sudo apt-get install intel-oneapi-compiler-dpcpp-cpp=2021.3.0-3350
33
- sudo apt-get install intel-oneapi-tbb=2021.3.0-511
32
+ sudo apt-get install intel-oneapi-compiler-dpcpp-cpp
33
+ sudo apt-get install intel-oneapi-tbb
34
34
35
35
- name : Install CMake
36
36
run : |
@@ -39,16 +39,16 @@ jobs:
39
39
- name : Setup Python
40
40
uses : actions/setup-python@v2
41
41
with :
42
- python-version : ' 3.8 '
42
+ python-version : ' 3.9 '
43
43
architecture : x64
44
44
45
45
- name : Cache Gtest
46
46
id : cache-gtest
47
47
uses : actions/cache@v2
48
48
with :
49
49
path : |
50
- /home/runner/work/googletest-release-1.10 .0/install
51
- key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('/home/runner/work/googletest-release-1.10 .0/install/include/gtest/*') }}
50
+ /home/runner/work/googletest-release-1.11 .0/install
51
+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('/home/runner/work/googletest-release-1.11 .0/install/include/gtest/*') }}
52
52
restore-keys : |
53
53
${{ runner.os }}-build-${{ env.cache-name }}-
54
54
${{ runner.os }}-build-
@@ -59,12 +59,12 @@ jobs:
59
59
shell : bash -l {0}
60
60
run : |
61
61
cd /home/runner/work
62
- wget https://github.com/google/googletest/archive/refs/tags/release-1.10 .0.tar.gz
63
- tar xf release-1.10 .0.tar.gz
64
- cd googletest-release-1.10 .0
62
+ wget https://github.com/google/googletest/archive/refs/tags/release-1.11 .0.tar.gz
63
+ tar xf release-1.11 .0.tar.gz
64
+ cd googletest-release-1.11 .0
65
65
mkdir build
66
66
cd build
67
- cmake .. -DCMAKE_INSTALL_PREFIX=/home/runner/work/googletest-release-1.10 .0/install
67
+ cmake .. -DCMAKE_INSTALL_PREFIX=/home/runner/work/googletest-release-1.11 .0/install
68
68
make && make install
69
69
70
70
- name : Checkout repo
@@ -79,14 +79,19 @@ jobs:
79
79
- name : Install dpctl dependencies
80
80
shell : bash -l {0}
81
81
run : |
82
- pip install numpy cython setuptools pytest pytest-cov coverage[toml]
82
+ pip install numpy cython setuptools pytest pytest-cov scikit-build coverage[toml]
83
83
84
84
- name : Build dpctl with coverage
85
85
shell : bash -l {0}
86
86
run : |
87
87
source /opt/intel/oneapi/setvars.sh
88
- python setup.py develop --coverage=True
89
- python -c "import dpctl; print(dpctl.__version__); dpctl.lsplatform()"
88
+ export _SAVED_PATH=${PATH}
89
+ export PATH=$(dirname $(dirname $(which icx)))/bin-llvm:${PATH}
90
+ python setup.py develop -- -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER:PATH=icx -DCMAKE_CXX_COMPILER:PATH=icpx -DDPCTL_ENABLE_LO_PROGRAM_CREATION=ON -DDPCTL_GENERATE_COVERAGE=ON -DDPCTL_BUILD_CAPI_TESTS=ON -DDPCTL_COVERAGE_REPORT_OUTPUT_DIR=$(pwd)
91
+ make -C $(find _skbuild -name tests) lcov-genhtml
92
+ export PATH=${_SAVED_PATH}
93
+ unset _SAVED_PATH
94
+ python -c "import dpctl; print(dpctl.__version__); dpctl.lsplatform()" || exit 1
90
95
pytest -q -ra --disable-warnings --cov-config pyproject.toml --cov dpctl --cov-report term-missing --pyargs dpctl -vv
91
96
92
97
- name : Install coverall dependencies
96
101
pip install coveralls==3.2.0
97
102
98
103
- name : Upload coverage data to coveralls.io
104
+ shell : bash -l {0}
99
105
run : |
100
- coveralls-lcov -v -n build_cmake/ tests/dpctl.lcov > dpctl-c-api-coverage.json
106
+ coveralls-lcov -v -n $(find _skbuild -name tests) /dpctl.lcov > dpctl-c-api-coverage.json
101
107
coveralls --service=github --merge=dpctl-c-api-coverage.json
102
108
env :
103
109
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments