From 089977f77dd03b2867af65ddbdf1469a7ff5996f Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Thu, 23 Jan 2025 13:10:48 +0100 Subject: [PATCH 1/4] GitHub Actions: Add continuous integration tests --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..7458e92 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: ci +on: [pull_request, push] +jobs: + codespell_and_ruff: + runs-on: ubuntu-24.04-arm + steps: + - uses: actions/checkout@v4 + - uses: codespell-project/actions-codespell@v2 + - uses: astral-sh/ruff-action@v3 + + test_cpulist: + runs-on: ubuntu-24.04-arm + strategy: + fail-fast: false + matrix: + options: [ "--help", "", "--verbose", "--compact", "--cache", "--cpus", "--features", "--check" ] + steps: + - uses: actions/checkout@v4 + - run: src/cpulist.py ${{ matrix.options }} + + test_sysreport: + runs-on: ubuntu-24.04-arm + strategy: + fail-fast: false + matrix: + options: [ "--help", "", "--verbose", "--config", "--vulnerabilities" ] + steps: + - uses: actions/checkout@v4 + - run: src/sysreport.py ${{ matrix.options }} From e2e20cc0eeba66bc454635d2e91b153c8fd7a121 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Thu, 23 Jan 2025 14:03:25 +0100 Subject: [PATCH 2/4] Add test_hugepages --- .github/workflows/ci.yml | 6 ++++++ src/hugepages.py | 0 2 files changed, 6 insertions(+) mode change 100644 => 100755 src/hugepages.py diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7458e92..9045e7a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,12 @@ jobs: - uses: actions/checkout@v4 - run: src/cpulist.py ${{ matrix.options }} + test_hugepages: + runs-on: ubuntu-24.04-arm + steps: + - uses: actions/checkout@v4 + - run: src/hugepages.py + test_sysreport: runs-on: ubuntu-24.04-arm strategy: diff --git a/src/hugepages.py b/src/hugepages.py old mode 100644 new mode 100755 From 8c2efdbd0a3a65f453bf90e077add69106a5cd5e Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Thu, 23 Jan 2025 14:15:55 +0100 Subject: [PATCH 3/4] Update ci.yml --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9045e7a..cc04f3e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,6 +16,7 @@ jobs: options: [ "--help", "", "--verbose", "--compact", "--cache", "--cpus", "--features", "--check" ] steps: - uses: actions/checkout@v4 + - run: python -m pip install --user pyperf - run: src/cpulist.py ${{ matrix.options }} test_hugepages: From b5dc2ce8404df729243cb407ef0e72c801e8716d Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Thu, 23 Jan 2025 15:10:07 +0100 Subject: [PATCH 4/4] Disable ruff for now --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cc04f3e..82d86c7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,7 +6,7 @@ jobs: steps: - uses: actions/checkout@v4 - uses: codespell-project/actions-codespell@v2 - - uses: astral-sh/ruff-action@v3 + # - uses: astral-sh/ruff-action@v3 test_cpulist: runs-on: ubuntu-24.04-arm