@@ -10,48 +10,52 @@ 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
15+ # container: localhost:5000/umf_docker:latest
1416
1517 steps :
18+ - name : Install git
19+ run : |
20+ apt-get update
21+ apt-get install -y git
22+
1623 - name : Checkout repository
1724 uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
1825 with :
1926 fetch-depth : 0
2027
2128 - name : Install dependencies
2229 run : |
23- sudo apt-get update
24- sudo apt-get install -y black cmake clang-format-15 cmake-format libhwloc-dev doxygen
25-
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
30+ DEBIAN_FRONTEND=noninteractive apt-get install -y git python3-pip black cmake clang-format-15 cmake-format libhwloc-dev doxygen libtbb-dev automake wget
3231 python3 -m pip install -r third_party/requirements.txt
3332 python3 -m pip install bandit codespell
33+ git status
3434
3535 - name : Configure CMake
3636 run : >
3737 cmake
38- -B ${{github.workspace}}/ build
38+ -B build
3939 -DUMF_FORMAT_CODE_STYLE=ON
4040 -DUMF_BUILD_TESTS=OFF
4141 -DUMF_BUILD_LEVEL_ZERO_PROVIDER=OFF
4242 -DUMF_BUILD_CUDA_PROVIDER=OFF
4343 -DUMF_BUILD_LIBUMF_POOL_JEMALLOC=OFF
4444
4545 - name : Check C/C++ formatting
46- run : cmake --build build --target clang-format-check
46+ run : |
47+ cmake --build build --target clang-format-check
48+ git diff --exit-code
4749
4850 - name : Check CMake formatting
4951 run : |
5052 cmake --build build --target cmake-format-apply
5153 git diff --exit-code
5254
5355 - name : Check Python formatting
54- run : cmake --build build --target black-format-check
56+ run : |
57+ cmake --build build --target black-format-check
58+ git diff --exit-code
5559
5660 - name : Run check-license
5761 run : |
@@ -67,10 +71,10 @@ jobs:
6771
6872 - name : Check spelling in docs
6973 run : |
70- cmake -B build
7174 cmake --build build --target docs
7275 sphinx-build -b spelling ./build/docs_build/config ./build/docs_build/spelling_log -W
7376
74- # Run Bandit recursively, but omit _deps directory (with 3rd party code) and python's venv
77+ # Run Bandit recursively, but omit _deps directory (with 3rd party code)
78+ # and python's venv
7579 - name : Run Bandit
76- run : python3 -m bandit -r . -x '/_deps/,/.venv/ '
80+ run : python3 -m bandit -r . -x '/_deps/'
0 commit comments