Skip to content

Commit 13b07a9

Browse files
Merge pull request linux-nvme#476 from martin-belanger/improve-ci
ci: improve workflow robustness and coverage
2 parents d50d714 + 8ec7e4f commit 13b07a9

4 files changed

Lines changed: 23 additions & 2 deletions

File tree

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ updates:
66
schedule:
77
interval: "weekly"
88
- package-ecosystem: "docker"
9+
directory: "/"
10+
schedule:
11+
interval: "weekly"
12+
- package-ecosystem: "pip"
913
directory: "/"
1014
schedule:
1115
interval: "weekly"

.github/workflows/linters.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
docker-lint:
1414
if: ${{ !github.event.act }} # skip during local actions testing
1515
runs-on: ubuntu-latest
16+
timeout-minutes: 10
1617
steps:
1718
- uses: actions/checkout@v6
1819
- uses: hadolint/[email protected]
@@ -22,6 +23,7 @@ jobs:
2223

2324
python-lint-Jammy:
2425
runs-on: ubuntu-22.04
26+
timeout-minutes: 30
2527

2628
strategy:
2729
fail-fast: false
@@ -74,6 +76,7 @@ jobs:
7476
7577
python-lint-Noble:
7678
runs-on: ubuntu-24.04
79+
timeout-minutes: 30
7780

7881
strategy:
7982
fail-fast: false

.github/workflows/meson-test.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,33 @@ on:
55
branches: [ main ]
66
pull_request:
77
branches: [ main ]
8+
schedule:
9+
- cron: '0 4 * * 0' # Sundays at 4:00 AM UTC
810

911
workflow_dispatch:
1012

1113
jobs:
1214
meson-build:
13-
runs-on: ubuntu-24.04
15+
runs-on: ${{ matrix.os }}
16+
timeout-minutes: 60
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
os: [ubuntu-22.04, ubuntu-24.04]
1421
steps:
1522
- name: "CHECKOUT: nvme-stas"
1623
uses: actions/checkout@v6
1724

1825
- name: "INSTALL: build packages"
1926
run: |
2027
sudo apt update
21-
sudo apt-get install --yes --quiet meson ninja-build cmake
28+
sudo apt-get install --yes --quiet ninja-build cmake
29+
# Jammy ships meson 0.61 which is too old; install a newer version via pip
30+
if [ "${{ matrix.os }}" = "ubuntu-22.04" ]; then
31+
pip install meson
32+
else
33+
sudo apt-get install --yes --quiet meson
34+
fi
2235
2336
- name: "INSTALL: python packages"
2437
run: |

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# nvme-stas - NVMe STorage Appliance Services (STAS)
22

33
![Build](https://github.com/linux-nvme/nvme-stas/actions/workflows/meson-test.yml/badge.svg)
4+
![CodeQL](https://github.com/linux-nvme/nvme-stas/actions/workflows/codeql.yml/badge.svg)
45
![GitHub](https://img.shields.io/github/license/linux-nvme/nvme-stas)
56
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
67
[![Release](https://img.shields.io/github/v/release/linux-nvme/nvme-stas?include_prereleases&style=)](https://github.com/linux-nvme/nvme-stas/releases)

0 commit comments

Comments
 (0)