@@ -10,67 +10,103 @@ 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 :
16- - name : Checkout repository
17- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
18- with :
19- fetch-depth : 0
20-
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
18+
19+ # - name: Wait for healthchecks
20+ # run: |
21+ # echo "images"
22+ # docker images
23+ # echo "ps"
24+ # docker ps
25+ # timeout 60s sh -c 'until docker ps | grep umf_docker | grep -q healthy; do echo "Waiting for container to be healthy..."; sleep 2; done'
2526
2627 # Latest distros do not allow global pip installation
2728 - name : Install Python requirements in venv
2829 run : |
30+ apt-get update
31+ DEBIAN_FRONTEND=noninteractive apt-get install -y git python3-venv libenchant-2-dev
2932 python3 -m venv .venv
3033 . .venv/bin/activate
3134 echo "$PATH" >> $GITHUB_PATH
3235 python3 -m pip install -r third_party/requirements.txt
33- python3 -m pip install bandit codespell
36+ python3 -m pip install bandit codespell pyenchant
37+
38+ - name : test
39+ run : |
40+ pwd
41+ ls -l
42+ echo "PATH: $PATH"
43+ echo "PYTHONPATH: $PYTHONPATH"
44+ echo "LD_LIBRARY_PATH: $LD_LIBRARY_PATH"
45+
46+ - name : Checkout repository
47+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
48+ with :
49+ fetch-depth : 0
50+ path : ${{github.workspace}}/umf
51+
52+ - name : Install dependencies
53+ run : |
54+ DEBIAN_FRONTEND=noninteractive apt-get install -y git black cmake clang-format-15 cmake-format libhwloc-dev doxygen libtbb-dev automake wget
3455
3556 - name : Configure CMake
57+ working-directory : ${{github.workspace}}/umf
3658 run : >
3759 cmake
38- -B ${{github.workspace}}/ build
60+ -B build
3961 -DUMF_FORMAT_CODE_STYLE=ON
4062 -DUMF_BUILD_TESTS=OFF
4163 -DUMF_BUILD_LEVEL_ZERO_PROVIDER=OFF
4264 -DUMF_BUILD_CUDA_PROVIDER=OFF
4365 -DUMF_BUILD_LIBUMF_POOL_JEMALLOC=OFF
4466
4567 - name : Check C/C++ formatting
46- run : cmake --build build --target clang-format-check
68+ working-directory : ${{github.workspace}}/umf
69+ run : |
70+ cmake --build build --target clang-format-check
71+ git diff --exit-code
4772
4873 - name : Check CMake formatting
74+ working-directory : ${{github.workspace}}/umf
4975 run : |
5076 cmake --build build --target cmake-format-apply
5177 git diff --exit-code
5278
5379 - name : Check Python formatting
54- run : cmake --build build --target black-format-check
80+ working-directory : ${{github.workspace}}/umf
81+ run : |
82+ cmake --build build --target black-format-check
83+ git diff --exit-code
5584
5685 - name : Run check-license
86+ working-directory : ${{github.workspace}}/umf
5787 run : |
58- ./ scripts/check_license/check_headers.sh . "Apache-2.0 WITH LLVM-exception" -v
88+ scripts/check_license/check_headers.sh . "Apache-2.0 WITH LLVM-exception" -v
5989
6090 - name : Run a spell check
6191 uses : crate-ci/typos@b63f421581dce830bda2f597a678cb7776b41877 # v1.18.2
6292 with :
63- config : . /.github/workflows/.spellcheck-conf.toml
93+ config : ${{github.workspace}}/umf /.github/workflows/.spellcheck-conf.toml
6494
6595 - name : Run codespell
66- run : python3 ./.github/scripts/run-codespell.py
96+ working-directory : ${{github.workspace}}/umf
97+ run : python3 .github/scripts/run-codespell.py
6798
6899 - name : Check spelling in docs
100+ working-directory : ${{github.workspace}}/umf
69101 run : |
70- cmake -B build
102+ python3 -m pip list
103+ echo "aaaaaaaaa"
71104 cmake --build build --target docs
72105 sphinx-build -b spelling ./build/docs_build/config ./build/docs_build/spelling_log -W
73106
74- # Run Bandit recursively, but omit _deps directory (with 3rd party code) and python's venv
107+ # Run Bandit recursively, but omit _deps directory (with 3rd party code)
108+ # and python's venv
75109 - name : Run Bandit
76- run : python3 -m bandit -r . -x '/_deps/,/.venv/'
110+ working-directory : ${{github.workspace}}/umf
111+ run : |
112+ python3 -m bandit -r . -x '/_deps/,/.venv/'
0 commit comments