@@ -10,67 +10,86 @@ 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 # localhost:5000/umf_docker:latest
14
15
15
16
steps :
16
- - name : Checkout repository
17
- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
18
- with :
19
- fetch-depth : 0
20
-
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
25
17
26
18
# Latest distros do not allow global pip installation
27
19
- name : Install Python requirements in venv
28
20
run : |
21
+ apt-get update
22
+ DEBIAN_FRONTEND=noninteractive apt-get install -y git python3-venv
29
23
python3 -m venv .venv
30
24
. .venv/bin/activate
25
+ pwd
31
26
echo "$PATH" >> $GITHUB_PATH
32
27
python3 -m pip install -r third_party/requirements.txt
33
- python3 -m pip install bandit codespell
28
+ python3 -m pip install bandit codespell pyenchant
29
+
30
+ - name : Checkout repository
31
+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
32
+ with :
33
+ fetch-depth : 0
34
+ path : ${{github.workspace}}/umf
35
+
36
+ - name : Install dependencies
37
+ run : |
38
+ DEBIAN_FRONTEND=noninteractive apt-get install -y git black cmake clang-format-15 cmake-format libhwloc-dev doxygen libtbb-dev automake wget
34
39
35
40
- name : Configure CMake
36
- run : >
37
- cmake
38
- -B ${{github.workspace}}/ build
39
- -DUMF_FORMAT_CODE_STYLE=ON
40
- -DUMF_BUILD_TESTS=OFF
41
- -DUMF_BUILD_LEVEL_ZERO_PROVIDER=OFF
42
- -DUMF_BUILD_CUDA_PROVIDER=OFF
43
- -DUMF_BUILD_LIBUMF_POOL_JEMALLOC=OFF
41
+ working-directory : ${{github.workspace}}/umf
42
+ run : |
43
+ cmake -B build \
44
+ -DUMF_FORMAT_CODE_STYLE=ON \
45
+ -DUMF_BUILD_TESTS=OFF \
46
+ -DUMF_BUILD_LEVEL_ZERO_PROVIDER=OFF \
47
+ -DUMF_BUILD_CUDA_PROVIDER=OFF \
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
+ working-directory : ${{github.workspace}}/umf
52
+ run : |
53
+ pwd
54
+ ls -al
55
+ cmake --build build --target clang-format-check
56
+ git diff --exit-code
47
57
48
58
- name : Check CMake formatting
59
+ working-directory : ${{github.workspace}}/umf
49
60
run : |
50
61
cmake --build build --target cmake-format-apply
51
62
git diff --exit-code
52
63
53
64
- name : Check Python formatting
54
- run : cmake --build build --target black-format-check
65
+ working-directory : ${{github.workspace}}/umf
66
+ run : |
67
+ cmake --build build --target black-format-check
68
+ git diff --exit-code
55
69
56
70
- name : Run check-license
71
+ working-directory : ${{github.workspace}}/umf
57
72
run : |
58
- ./ scripts/check_license/check_headers.sh . "Apache-2.0 WITH LLVM-exception" -v
73
+ scripts/check_license/check_headers.sh . "Apache-2.0 WITH LLVM-exception" -v
59
74
60
75
- name : Run a spell check
61
76
uses : crate-ci/typos@b63f421581dce830bda2f597a678cb7776b41877 # v1.18.2
62
77
with :
63
- config : . /.github/workflows/.spellcheck-conf.toml
78
+ config : ${{github.workspace}}/umf /.github/workflows/.spellcheck-conf.toml
64
79
65
80
- name : Run codespell
66
- run : python3 ./.github/scripts/run-codespell.py
67
-
68
- - name : Check spelling in docs
81
+ working-directory : ${{github.workspace}}/umf
69
82
run : |
70
- cmake -B build
71
- cmake --build build --target docs
72
- sphinx-build -b spelling ./build/docs_build/config ./build/docs_build/spelling_log -W
83
+ python3 .github/scripts/run-codespell.py
84
+
85
+ # - name: Check spelling in docs
86
+ # working-directory: ${{github.workspace}}/umf
87
+ # run: |
88
+ # cmake --build build --target docs
89
+ # sphinx-build -b spelling ./build/docs_build/config ./build/docs_build/spelling_log -W
73
90
74
91
# Run Bandit recursively, but omit _deps directory (with 3rd party code) and python's venv
75
92
- name : Run Bandit
76
- run : python3 -m bandit -r . -x '/_deps/,/.venv/'
93
+ working-directory : ${{github.workspace}}/umf
94
+ run : |
95
+ python3 -m bandit -r . -x '/_deps/,/.venv/'
0 commit comments