@@ -10,48 +10,65 @@ 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+ image : localhost:5000/umf_docker:latest
17+ # root is needed? at least for the checkout step
18+ # https://github.com/actions/checkout/issues/1575
19+ options : --user root
1420
1521 steps :
22+ # name: Install git
23+ # run: |
24+ # # prevent dubious ownership error
25+ # chown -R $(id -u):$(id -g) .
26+ # apt-get update
27+ # apt-get install -y git
28+
1629 - name : Checkout repository
1730 uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
1831 with :
1932 fetch-depth : 0
33+ # path: /opt/umf
2034
2135 - name : Install dependencies
2236 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
37+ # python3 -m pip install -r third_party/requirements.txt
3338 python3 -m pip install bandit codespell
3439
35- - name : Configure CMake
40+ # - name: Install dependencies
41+ # run: |
42+ # DEBIAN_FRONTEND=noninteractive apt-get install -y git python3-pip black cmake clang-format-15 cmake-format libhwloc-dev doxygen libtbb-dev
43+ # # TODO: needed by actions - move to dockerfile
44+ # DEBIAN_FRONTEND=noninteractive apt-get install -y wget libenchant-2-dev jq
45+ # python3 -m pip install -r third_party/requirements.txt
46+ # python3 -m pip install bandit codespell
47+
48+ - name : Configure CMake
3649 run : >
3750 cmake
38- -B ${{github.workspace}}/ build
51+ -B build
3952 -DUMF_FORMAT_CODE_STYLE=ON
4053 -DUMF_BUILD_TESTS=OFF
4154 -DUMF_BUILD_LEVEL_ZERO_PROVIDER=OFF
4255 -DUMF_BUILD_CUDA_PROVIDER=OFF
4356 -DUMF_BUILD_LIBUMF_POOL_JEMALLOC=OFF
4457
4558 - name : Check C/C++ formatting
46- run : cmake --build build --target clang-format-check
59+ run : |
60+ cmake --build build --target clang-format-check
61+ git diff --exit-code
4762
4863 - name : Check CMake formatting
4964 run : |
5065 cmake --build build --target cmake-format-apply
5166 git diff --exit-code
5267
5368 - name : Check Python formatting
54- run : cmake --build build --target black-format-check
69+ run : |
70+ cmake --build build --target black-format-check
71+ git diff --exit-code
5572
5673 - name : Run check-license
5774 run : |
6784
6885 - name : Check spelling in docs
6986 run : |
70- cmake -B build
7187 cmake --build build --target docs
7288 sphinx-build -b spelling ./build/docs_build/config ./build/docs_build/spelling_log -W
7389
74- # Run Bandit recursively, but omit _deps directory (with 3rd party code) and python's venv
90+ # Run Bandit recursively, but omit _deps directory (with 3rd party code)
7591 - name : Run Bandit
76- run : python3 -m bandit -r . -x '/_deps/,/.venv/ '
92+ run : python3 -m bandit -r . -x '/_deps/'
0 commit comments