@@ -10,48 +10,57 @@ permissions:
10
10
jobs :
11
11
CodeChecks :
12
12
name : Basic code checks
13
- runs-on : ${{ github.repository_owner == 'oneapi-src' && 'intel-ubuntu-22.04' || 'ubuntu-latest' }}
13
+ runs-on : ' DSS-L0-FLEX'
14
+ # container: ubuntu:22.04
15
+ container :
16
+ image : localhost:5000/umf_docker:latest
17
+ # root is needed? at least for the checkout step
18
+ # https://github.com/actions/checkout/issues/1575
19
+ options : --user root
14
20
15
21
steps :
16
22
- name : Checkout repository
17
23
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
18
24
with :
19
25
fetch-depth : 0
20
26
21
- - name : Install dependencies
22
- run : |
23
- sudo apt-get update
24
- sudo apt-get install -y black cmake clang-format-15 cmake-format libhwloc-dev doxygen
27
+ # - name: Install dependencies
28
+ # run: |
29
+ # # python3 -m pip install -r third_party/requirements.txt
30
+ # python3 -m pip install bandit codespell
25
31
26
- # Latest distros do not allow global pip installation
27
- - name : Install Python requirements in venv
28
- run : |
29
- python3 -m venv .venv
30
- . .venv/bin/activate
31
- echo "$PATH" >> $GITHUB_PATH
32
- python3 -m pip install -r third_party/requirements.txt
33
- python3 -m pip install bandit codespell
32
+ # - name: Install dependencies
33
+ # run: |
34
+ # DEBIAN_FRONTEND=noninteractive apt-get install -y git python3-pip black cmake clang-format-15 cmake-format libhwloc-dev doxygen libtbb-dev
35
+ # # TODO: needed by actions - move to dockerfile
36
+ # DEBIAN_FRONTEND=noninteractive apt-get install -y wget libenchant-2-dev jq
37
+ # python3 -m pip install -r third_party/requirements.txt
38
+ # python3 -m pip install bandit codespell
34
39
35
- - name : Configure CMake
40
+ - name : Configure CMake
36
41
run : >
37
42
cmake
38
- -B ${{github.workspace}}/ build
43
+ -B build
39
44
-DUMF_FORMAT_CODE_STYLE=ON
40
45
-DUMF_BUILD_TESTS=OFF
41
46
-DUMF_BUILD_LEVEL_ZERO_PROVIDER=OFF
42
47
-DUMF_BUILD_CUDA_PROVIDER=OFF
43
48
-DUMF_BUILD_LIBUMF_POOL_JEMALLOC=OFF
44
49
45
50
- name : Check C/C++ formatting
46
- run : cmake --build build --target clang-format-check
51
+ run : |
52
+ cmake --build build --target clang-format-check
53
+ git diff --exit-code
47
54
48
55
- name : Check CMake formatting
49
56
run : |
50
57
cmake --build build --target cmake-format-apply
51
58
git diff --exit-code
52
59
53
60
- name : Check Python formatting
54
- run : cmake --build build --target black-format-check
61
+ run : |
62
+ cmake --build build --target black-format-check
63
+ git diff --exit-code
55
64
56
65
- name : Run check-license
57
66
run : |
67
76
68
77
- name : Check spelling in docs
69
78
run : |
70
- cmake -B build
71
79
cmake --build build --target docs
72
80
sphinx-build -b spelling ./build/docs_build/config ./build/docs_build/spelling_log -W
73
81
74
- # Run Bandit recursively, but omit _deps directory (with 3rd party code) and python's venv
82
+ # Run Bandit recursively, but omit _deps directory (with 3rd party code)
75
83
- name : Run Bandit
76
- run : python3 -m bandit -r . -x '/_deps/,/.venv/ '
84
+ run : python3 -m bandit -r . -x '/_deps/'
0 commit comments