@@ -10,67 +10,87 @@ 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 : localhost:5000/umf_docker:latest
1415
1516 steps :
17+
18+ - name : Wait for healthchecks
19+ run : timeout 60s sh -c 'until docker ps | grep umf_docker | grep -q healthy; do echo "Waiting for container to be healthy..."; sleep 2; done'
20+
21+ # Latest distros do not allow global pip installation
22+ # - name: Install Python requirements in venv
23+ # run: |
24+ # apt-get update
25+ # DEBIAN_FRONTEND=noninteractive apt-get install -y git python3-venv
26+ # python3 -m venv .venv
27+ # . .venv/bin/activate
28+ # echo "$PATH" >> $GITHUB_PATH
29+ # python3 -m pip install -r third_party/requirements.txt
30+ # python3 -m pip install bandit codespell pyenchant
31+
1632 - name : Checkout repository
1733 uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
1834 with :
1935 fetch-depth : 0
36+ path : ${{github.workspace}}/umf
2037
2138 - name : Install dependencies
2239 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
40+ DEBIAN_FRONTEND=noninteractive apt-get install -y git black cmake clang-format-15 cmake-format libhwloc-dev doxygen libtbb-dev automake wget
3441
3542 - name : Configure CMake
43+ working-directory : ${{github.workspace}}/umf
3644 run : >
3745 cmake
38- -B ${{github.workspace}}/ build
46+ -B build
3947 -DUMF_FORMAT_CODE_STYLE=ON
4048 -DUMF_BUILD_TESTS=OFF
4149 -DUMF_BUILD_LEVEL_ZERO_PROVIDER=OFF
4250 -DUMF_BUILD_CUDA_PROVIDER=OFF
4351 -DUMF_BUILD_LIBUMF_POOL_JEMALLOC=OFF
4452
4553 - name : Check C/C++ formatting
46- run : cmake --build build --target clang-format-check
54+ working-directory : ${{github.workspace}}/umf
55+ run : |
56+ cmake --build build --target clang-format-check
57+ git diff --exit-code
4758
4859 - name : Check CMake formatting
60+ working-directory : ${{github.workspace}}/umf
4961 run : |
5062 cmake --build build --target cmake-format-apply
5163 git diff --exit-code
5264
5365 - name : Check Python formatting
54- run : cmake --build build --target black-format-check
66+ working-directory : ${{github.workspace}}/umf
67+ run : |
68+ cmake --build build --target black-format-check
69+ git diff --exit-code
5570
5671 - name : Run check-license
72+ working-directory : ${{github.workspace}}/umf
5773 run : |
58- ./ scripts/check_license/check_headers.sh . "Apache-2.0 WITH LLVM-exception" -v
74+ scripts/check_license/check_headers.sh . "Apache-2.0 WITH LLVM-exception" -v
5975
6076 - name : Run a spell check
6177 uses : crate-ci/typos@b63f421581dce830bda2f597a678cb7776b41877 # v1.18.2
6278 with :
63- config : . /.github/workflows/.spellcheck-conf.toml
79+ config : ${{github.workspace}}/umf /.github/workflows/.spellcheck-conf.toml
6480
6581 - name : Run codespell
66- run : python3 ./.github/scripts/run-codespell.py
82+ working-directory : ${{github.workspace}}/umf
83+ run : python3 .github/scripts/run-codespell.py
6784
68- - name : Check spelling in docs
69- run : |
70- cmake -B build
71- cmake --build build --target docs
72- sphinx-build -b spelling ./build/docs_build/config ./build/docs_build/spelling_log -W
85+ # - name: Check spelling in docs
86+ # working-directory: ${{github.workspace}}/umf
87+ # run: |
88+ # cmake --build build --target docs
89+ # sphinx-build -b spelling ./build/docs_build/config ./build/docs_build/spelling_log -W
7390
74- # Run Bandit recursively, but omit _deps directory (with 3rd party code) and python's venv
91+ # Run Bandit recursively, but omit _deps directory (with 3rd party code)
92+ # and python's venv
7593 - name : Run Bandit
76- run : python3 -m bandit -r . -x '/_deps/,/.venv/'
94+ working-directory : ${{github.workspace}}/umf
95+ run : |
96+ python3 -m bandit -r . -x '/_deps/,/.venv/'
0 commit comments