@@ -10,18 +10,21 @@ 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 :
15+ image : ubuntu:22.04 # localhost:5000/umf_docker:latest
1416
1517 steps :
1618 - name : Checkout repository
1719 uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
1820 with :
1921 fetch-depth : 0
22+ path : ${{github.workspace}}
2023
2124 - name : Install dependencies
2225 run : |
23- sudo apt-get update
24- sudo apt-get install -y black cmake clang-format-15 cmake-format libhwloc-dev doxygen
26+ apt-get update
27+ DEBIAN_FRONTEND=noninteractive apt-get install -y git python3-venv black cmake clang-format-15 cmake-format libhwloc-dev doxygen libtbb-dev automake
2528
2629 # Latest distros do not allow global pip installation
2730 - name : Install Python requirements in venv
@@ -43,34 +46,37 @@ jobs:
4346 -DUMF_BUILD_LIBUMF_POOL_JEMALLOC=OFF
4447
4548 - name : Check C/C++ formatting
46- run : cmake --build build --target clang-format-check
49+ run : cmake --build ${{github.workspace}}/ build --target clang-format-check
4750
4851 - name : Check CMake formatting
4952 run : |
50- cmake --build build --target cmake-format-apply
53+ cmake --build ${{github.workspace}}/ build --target cmake-format-apply
5154 git diff --exit-code
5255
5356 - name : Check Python formatting
54- run : cmake --build build --target black-format-check
57+ run : cmake --build ${{github.workspace}}/ build --target black-format-check
5558
5659 - name : Run check-license
5760 run : |
58- . /scripts/check_license/check_headers.sh . "Apache-2.0 WITH LLVM-exception" -v
61+ ${{github.workspace}}/.github /scripts/check_license/check_headers.sh . "Apache-2.0 WITH LLVM-exception" -v
5962
6063 - name : Run a spell check
6164 uses : crate-ci/typos@b63f421581dce830bda2f597a678cb7776b41877 # v1.18.2
6265 with :
63- config : . /.github/workflows/.spellcheck-conf.toml
66+ config : ${{github.workspace}} /.github/workflows/.spellcheck-conf.toml
6467
6568 - name : Run codespell
66- run : python3 . /.github/scripts/run-codespell.py
69+ run : python3 ${{github.workspace}} /.github/scripts/run-codespell.py
6770
6871 - name : Check spelling in docs
6972 run : |
73+ cd ${{github.workspace}}
7074 cmake -B build
7175 cmake --build build --target docs
7276 sphinx-build -b spelling ./build/docs_build/config ./build/docs_build/spelling_log -W
7377
7478 # Run Bandit recursively, but omit _deps directory (with 3rd party code) and python's venv
7579 - name : Run Bandit
76- run : python3 -m bandit -r . -x '/_deps/,/.venv/'
80+ run : |
81+ cd ${{github.workspace}}
82+ python3 -m bandit -r . -x '/_deps/,/.venv/'
0 commit comments