Skip to content

Commit a400d3b

Browse files
committed
test
1 parent 52668c3 commit a400d3b

File tree

2 files changed

+33
-105
lines changed

2 files changed

+33
-105
lines changed

.github/workflows/pr_push.yml

Lines changed: 0 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -18,88 +18,3 @@ permissions:
1818
jobs:
1919
CodeChecks:
2020
uses: ./.github/workflows/reusable_checks.yml
21-
DocsBuild:
22-
uses: ./.github/workflows/reusable_docs_build.yml
23-
FastBuild:
24-
name: Fast builds
25-
needs: [CodeChecks, DocsBuild]
26-
uses: ./.github/workflows/reusable_fast.yml
27-
Build:
28-
name: Basic builds
29-
needs: [FastBuild]
30-
uses: ./.github/workflows/reusable_basic.yml
31-
DevDax:
32-
needs: [FastBuild]
33-
uses: ./.github/workflows/reusable_dax.yml
34-
MultiNuma:
35-
needs: [FastBuild]
36-
uses: ./.github/workflows/reusable_multi_numa.yml
37-
L0:
38-
needs: [Build]
39-
uses: ./.github/workflows/reusable_gpu.yml
40-
with:
41-
provider: "LEVEL_ZERO"
42-
runner: "L0"
43-
shared_lib: "['ON']"
44-
L0-BMG:
45-
needs: [Build]
46-
uses: ./.github/workflows/reusable_gpu.yml
47-
with:
48-
provider: "LEVEL_ZERO"
49-
runner: "L0-BMG"
50-
shared_lib: "['ON']"
51-
os: "['Ubuntu']"
52-
CUDA:
53-
needs: [Build]
54-
uses: ./.github/workflows/reusable_gpu.yml
55-
with:
56-
provider: "CUDA"
57-
runner: "CUDA"
58-
shared_lib: "['ON']"
59-
Sanitizers:
60-
needs: [FastBuild]
61-
uses: ./.github/workflows/reusable_sanitizers.yml
62-
QEMU:
63-
needs: [FastBuild]
64-
uses: ./.github/workflows/reusable_qemu.yml
65-
with:
66-
short_run: true
67-
ProxyLib:
68-
needs: [Build]
69-
uses: ./.github/workflows/reusable_proxy_lib.yml
70-
Valgrind:
71-
needs: [Build]
72-
uses: ./.github/workflows/reusable_valgrind.yml
73-
Coverage:
74-
# total coverage (on upstream only)
75-
if: github.repository == 'oneapi-src/unified-memory-framework'
76-
needs: [Build, DevDax, L0, CUDA, MultiNuma, QEMU, ProxyLib]
77-
uses: ./.github/workflows/reusable_coverage.yml
78-
secrets: inherit
79-
with:
80-
trigger: "${{github.event_name}}"
81-
Coverage_partial:
82-
# partial coverage (on forks)
83-
if: github.repository != 'oneapi-src/unified-memory-framework'
84-
needs: [Build, QEMU, ProxyLib]
85-
uses: ./.github/workflows/reusable_coverage.yml
86-
CodeQL:
87-
needs: [Build]
88-
permissions:
89-
contents: read
90-
security-events: write
91-
uses: ./.github/workflows/reusable_codeql.yml
92-
Trivy:
93-
needs: [Build]
94-
permissions:
95-
contents: read
96-
security-events: write
97-
uses: ./.github/workflows/reusable_trivy.yml
98-
Compatibility:
99-
needs: [Build]
100-
uses: ./.github/workflows/reusable_compatibility.yml
101-
strategy:
102-
matrix:
103-
tag: ["v0.11.0-rc1"]
104-
with:
105-
tag: ${{matrix.tag}}

.github/workflows/reusable_checks.yml

Lines changed: 33 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,67 +10,80 @@ permissions:
1010
jobs:
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
25-
2618
# Latest distros do not allow global pip installation
2719
- name: Install Python requirements in venv
2820
run: |
21+
apt-get update
22+
DEBIAN_FRONTEND=noninteractive apt-get install -y git python3-venv libenchant-2-dev
2923
python3 -m venv .venv
3024
. .venv/bin/activate
3125
echo "$PATH" >> $GITHUB_PATH
3226
python3 -m pip install -r third_party/requirements.txt
3327
python3 -m pip install bandit codespell
3428
29+
- name: Checkout repository
30+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
31+
with:
32+
fetch-depth: 0
33+
clean: false
34+
35+
- name: Install dependencies
36+
run: |
37+
DEBIAN_FRONTEND=noninteractive apt-get install -y git black cmake clang-format-15 cmake-format libhwloc-dev doxygen libtbb-dev automake wget
38+
3539
- name: Configure CMake
3640
run: >
41+
pwd &&
42+
ls &&
3743
cmake
38-
-B ${{github.workspace}}/build
44+
-B build
3945
-DUMF_FORMAT_CODE_STYLE=ON
4046
-DUMF_BUILD_TESTS=OFF
4147
-DUMF_BUILD_LEVEL_ZERO_PROVIDER=OFF
4248
-DUMF_BUILD_CUDA_PROVIDER=OFF
4349
-DUMF_BUILD_LIBUMF_POOL_JEMALLOC=OFF
4450
4551
- name: Check C/C++ formatting
46-
run: cmake --build build --target clang-format-check
52+
run: |
53+
pwd
54+
ls
55+
cmake --build build --target clang-format-check
56+
git diff --exit-code
4757
4858
- name: Check CMake formatting
4959
run: |
5060
cmake --build build --target cmake-format-apply
5161
git diff --exit-code
5262
5363
- name: Check Python formatting
54-
run: cmake --build build --target black-format-check
64+
run: |
65+
cmake --build build --target black-format-check
66+
git diff --exit-code
5567
5668
- name: Run check-license
5769
run: |
58-
./scripts/check_license/check_headers.sh . "Apache-2.0 WITH LLVM-exception" -v
70+
scripts/check_license/check_headers.sh . "Apache-2.0 WITH LLVM-exception" -v
5971
6072
- name: Run a spell check
6173
uses: crate-ci/typos@b63f421581dce830bda2f597a678cb7776b41877 # v1.18.2
6274
with:
63-
config: ./.github/workflows/.spellcheck-conf.toml
75+
config: .github/workflows/.spellcheck-conf.toml
6476

6577
- name: Run codespell
66-
run: python3 ./.github/scripts/run-codespell.py
78+
run: python3 .github/scripts/run-codespell.py
6779

6880
- name: Check spelling in docs
6981
run: |
70-
cmake -B build
7182
cmake --build build --target docs
7283
sphinx-build -b spelling ./build/docs_build/config ./build/docs_build/spelling_log -W
7384
74-
# Run Bandit recursively, but omit _deps directory (with 3rd party code) and python's venv
85+
# Run Bandit recursively, but omit _deps directory (with 3rd party code)
86+
# and python's venv
7587
- name: Run Bandit
76-
run: python3 -m bandit -r . -x '/_deps/,/.venv/'
88+
run: |
89+
python3 -m bandit -r . -x '/_deps/,/.venv/'

0 commit comments

Comments
 (0)