@@ -10,48 +10,57 @@ 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+ # # prevent dubious ownership error
21+ # chown -R $(id -u):$(id -g) .
22+ # apt-get update
23+ # apt-get install -y git
24+
1625 - name : Checkout repository
1726 uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
1827 with :
1928 fetch-depth : 0
29+ path : /opt/umf
2030
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-
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
31+ # - name: Install dependencies
32+ # run: |
33+ # DEBIAN_FRONTEND=noninteractive apt-get install -y git python3-pip black cmake clang-format-15 cmake-format libhwloc-dev doxygen libtbb-dev
34+ # # TODO: needed by actions - move to dockerfile
35+ # DEBIAN_FRONTEND=noninteractive apt-get install -y wget libenchant-2-dev jq
36+ # python3 -m pip install -r third_party/requirements.txt
37+ # python3 -m pip install bandit codespell
3438
35- - name : Configure CMake
39+ - name : Configure CMake
40+ working-directory : /opt/umf
3641 run : >
3742 cmake
38- -B ${{github.workspace}}/ build
43+ -B build
3944 -DUMF_FORMAT_CODE_STYLE=ON
4045 -DUMF_BUILD_TESTS=OFF
4146 -DUMF_BUILD_LEVEL_ZERO_PROVIDER=OFF
4247 -DUMF_BUILD_CUDA_PROVIDER=OFF
4348 -DUMF_BUILD_LIBUMF_POOL_JEMALLOC=OFF
4449
4550 - 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
4754
4855 - name : Check CMake formatting
4956 run : |
5057 cmake --build build --target cmake-format-apply
5158 git diff --exit-code
5259
5360 - 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
5564
5665 - name : Run check-license
5766 run : |
6776
6877 - name : Check spelling in docs
6978 run : |
70- cmake -B build
7179 cmake --build build --target docs
7280 sphinx-build -b spelling ./build/docs_build/config ./build/docs_build/spelling_log -W
7381
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)
7583 - name : Run Bandit
76- run : python3 -m bandit -r . -x '/_deps/,/.venv/ '
84+ run : python3 -m bandit -r . -x '/_deps/'
0 commit comments