@@ -10,48 +10,64 @@ 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 :
16+ # https://github.com/actions/checkout/issues/1575
17+ image : localhost:5000/umf_docker:latest
18+ options : --user root
1419
1520 steps :
21+ # name: Install git
22+ # run: |
23+ # # prevent dubious ownership error
24+ # chown -R $(id -u):$(id -g) .
25+ # apt-get update
26+ # apt-get install -y git
27+
1628 - name : Checkout repository
1729 uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
1830 with :
1931 fetch-depth : 0
32+ # path: /opt/umf
2033
2134 - name : Install dependencies
2235 run : |
23- sudo apt-get update
24- sudo apt-get install -y black cmake clang-format-15 cmake-format libhwloc-dev doxygen
36+ apt-get install -y wget libenchant-2-dev jq
2537
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
38+ # - name: Install dependencies
39+ # run: |
40+ # DEBIAN_FRONTEND=noninteractive apt-get install -y git python3-pip black cmake clang-format-15 cmake-format libhwloc-dev doxygen libtbb-dev
41+ # # TODO: needed by actions - move to dockerfile
42+ # DEBIAN_FRONTEND=noninteractive apt-get install -y wget libenchant-2-dev jq
43+ # python3 -m pip install -r third_party/requirements.txt
44+ # python3 -m pip install bandit codespell
3445
35- - name : Configure CMake
46+ - name : Configure CMake
47+ # working-directory: /opt/umf
3648 run : >
3749 cmake
38- -B ${{github.workspace}}/ build
50+ -B build
3951 -DUMF_FORMAT_CODE_STYLE=ON
4052 -DUMF_BUILD_TESTS=OFF
4153 -DUMF_BUILD_LEVEL_ZERO_PROVIDER=OFF
4254 -DUMF_BUILD_CUDA_PROVIDER=OFF
4355 -DUMF_BUILD_LIBUMF_POOL_JEMALLOC=OFF
4456
4557 - name : Check C/C++ formatting
46- run : cmake --build build --target clang-format-check
58+ run : |
59+ cmake --build build --target clang-format-check
60+ git diff --exit-code
4761
4862 - name : Check CMake formatting
4963 run : |
5064 cmake --build build --target cmake-format-apply
5165 git diff --exit-code
5266
5367 - name : Check Python formatting
54- run : cmake --build build --target black-format-check
68+ run : |
69+ cmake --build build --target black-format-check
70+ git diff --exit-code
5571
5672 - name : Run check-license
5773 run : |
6783
6884 - name : Check spelling in docs
6985 run : |
70- cmake -B build
7186 cmake --build build --target docs
7287 sphinx-build -b spelling ./build/docs_build/config ./build/docs_build/spelling_log -W
7388
74- # Run Bandit recursively, but omit _deps directory (with 3rd party code) and python's venv
89+ # Run Bandit recursively, but omit _deps directory (with 3rd party code)
7590 - name : Run Bandit
76- run : python3 -m bandit -r . -x '/_deps/,/.venv/ '
91+ run : python3 -m bandit -r . -x '/_deps/'
0 commit comments