Skip to content

Commit d694cc8

Browse files
Merge pull request #1220 from lukaszstolarczuk/fixes-ci
Small fixes around CI
2 parents 1d42a80 + 616830c commit d694cc8

File tree

4 files changed

+19
-14
lines changed

4 files changed

+19
-14
lines changed

.github/workflows/benchmarks.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,13 @@ on:
2929
- L0_PERF
3030

3131
permissions:
32-
contents: write
33-
pull-requests: write
32+
contents: read
3433

3534
jobs:
3635
manual:
36+
permissions:
37+
contents: write
38+
pull-requests: write
3739
name: Compute Benchmarks
3840
uses: ./.github/workflows/reusable_benchmarks.yml
3941
with:

.github/workflows/coverity.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Coverity check
1+
# Coverity - static analysis build. It requires Coverity's token (set in CI's secret).
22
name: Coverity
33

44
on:
@@ -7,7 +7,7 @@ on:
77
cov_push_tarball:
88
description: 'Send Coverity tarball'
99
required: true
10-
default: 'true'
10+
default: true
1111
type: boolean
1212
schedule:
1313
- cron: '0 0 * * *'
@@ -18,7 +18,7 @@ permissions:
1818
jobs:
1919
coverity:
2020
name: Coverity
21-
# run only on upstream; forks do not know Username/Password
21+
# run only on upstream; forks don't have token for upstream's cov project
2222
if: github.repository == 'oneapi-src/unified-memory-framework'
2323
runs-on: ubuntu-latest
2424
steps:
@@ -34,12 +34,14 @@ jobs:
3434
sudo apt-get install -y cmake hwloc libhwloc-dev libnuma-dev libtbb-dev
3535
3636
- name: Download Coverity
37-
run: |
38-
wget -nv https://scan.coverity.com/download/linux64 --post-data "token=${{ secrets.COVERITY_SCAN_TOKEN }}&project=oneapi-src%2Funified-memory-framework" -O coverity_tool.tgz
37+
run: >
38+
wget
39+
-O coverity_tool.tgz
40+
-nv https://scan.coverity.com/download/linux64
41+
--post-data "token=${{ secrets.COVERITY_SCAN_TOKEN }}&project=oneapi-src%2Funified-memory-framework"
3942
4043
- name: Extract Coverity
41-
run: |
42-
tar xzf coverity_tool.tgz
44+
run: tar xzf coverity_tool.tgz
4345

4446
- name: Configure CMake
4547
run: >
@@ -60,8 +62,7 @@ jobs:
6062
cov-build --dir ${{github.workspace}}/cov-int cmake --build ${{github.workspace}}/build --config Release -j$(nproc)
6163
6264
- name: Create tarball to analyze
63-
run: >
64-
tar czvf cov-int_umf.tgz cov-int
65+
run: tar czvf cov-int_umf.tgz cov-int
6566

6667
- name: Push to Coverity Scan
6768
if: ${{ github.event_name == 'schedule' || github.event.inputs.cov_push_tarball == 'true' }}

.github/workflows/reusable_benchmarks.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ on:
2424
default: 'L0_PERF'
2525

2626
permissions:
27-
contents: write
28-
pull-requests: write
27+
contents: read
2928

3029
env:
3130
UMF_DIR: "${{github.workspace}}/umf-repo"
@@ -37,6 +36,9 @@ jobs:
3736
# run only on upstream; forks will not have the HW
3837
if: github.repository == 'oneapi-src/unified-memory-framework'
3938
runs-on: ${{ inputs.runner }}
39+
permissions:
40+
contents: write
41+
pull-requests: write
4042

4143
steps:
4244
- name: Establish bench params

scripts/qemu/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
psutil
1+
psutil==7.0.0

0 commit comments

Comments
 (0)