@@ -10,67 +10,89 @@ permissions:
1010jobs :
1111 CodeChecks :
1212 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
1415
1516 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
2517
2618 # Latest distros do not allow global pip installation
2719 - name : Install Python requirements in venv
2820 run : |
21+ apt-get update
22+ DEBIAN_FRONTEND=noninteractive apt-get install -y git python3-venv
2923 python3 -m venv .venv
3024 . .venv/bin/activate
3125 echo "$PATH" >> $GITHUB_PATH
3226 python3 -m pip install -r third_party/requirements.txt
33- python3 -m pip install bandit codespell
27+ python3 -m pip install bandit codespell pyenchant
28+
29+ - name : Checkout repository
30+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
31+ with :
32+ fetch-depth : 0
33+ path : ${{github.workspace}}/umf
34+
35+ - name : Install dependencies
36+ run : |
37+ DEBIAN_FRONTEND=noninteractive apt-get install -y git black cmake clang-format-15 cmake-format libhwloc-dev doxygen libtbb-dev automake wget
3438
3539 - 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
40+ working-directory : ${{github.workspace}}/umf
41+ run : |
42+ cmake -B build \
43+ -DUMF_FORMAT_CODE_STYLE=ON \
44+ -DUMF_BUILD_TESTS=OFF \
45+ -DUMF_BUILD_LEVEL_ZERO_PROVIDER=OFF \
46+ -DUMF_BUILD_CUDA_PROVIDER=OFF \
47+ -DUMF_BUILD_LIBUMF_POOL_JEMALLOC=OFF
4448
4549 - name : Check C/C++ formatting
46- run : cmake --build build --target clang-format-check
50+ working-directory : ${{github.workspace}}/umf
51+ run : |
52+ pwd
53+ ls -al
54+ cmake --build build --target clang-format-check
55+ git diff --exit-code
4756
4857 - name : Check CMake formatting
58+ working-directory : ${{github.workspace}}/umf
4959 run : |
5060 cmake --build build --target cmake-format-apply
5161 git diff --exit-code
5262
5363 - name : Check Python formatting
54- run : cmake --build build --target black-format-check
64+ working-directory : ${{github.workspace}}/umf
65+ run : |
66+ cmake --build build --target black-format-check
67+ git diff --exit-code
5568
5669 - name : Run check-license
70+ working-directory : ${{github.workspace}}/umf
5771 run : |
58- ./ scripts/check_license/check_headers.sh . "Apache-2.0 WITH LLVM-exception" -v
72+ scripts/check_license/check_headers.sh . "Apache-2.0 WITH LLVM-exception" -v
5973
6074 - name : Run a spell check
6175 uses : crate-ci/typos@b63f421581dce830bda2f597a678cb7776b41877 # v1.18.2
6276 with :
63- config : . /.github/workflows/.spellcheck-conf.toml
77+ config : ${{github.workspace}}/umf /.github/workflows/.spellcheck-conf.toml
6478
6579 - name : Run codespell
66- run : python3 ./.github/scripts/run-codespell.py
80+ working-directory : ${{github.workspace}}/umf
81+ run : |
82+ python3 .github/scripts/run-codespell.py
6783
6884 - name : Check spelling in docs
6985 run : |
70- cmake -B build
86+ echo $VIRTUAL_ENV
87+ echo $PATH
88+ . .venv/bin/activate
89+ echo $VIRTUAL_ENV
90+ cd ${{github.workspace}}/umf
7191 cmake --build build --target docs
7292 sphinx-build -b spelling ./build/docs_build/config ./build/docs_build/spelling_log -W
7393
7494 # Run Bandit recursively, but omit _deps directory (with 3rd party code) and python's venv
7595 - name : Run Bandit
76- run : python3 -m bandit -r . -x '/_deps/,/.venv/'
96+ working-directory : ${{github.workspace}}/umf
97+ run : |
98+ python3 -m bandit -r . -x '/_deps/,/.venv/'
0 commit comments