diff --git a/.github/workflows/test_cli_misc.yaml b/.github/workflows/test_cli_misc.yaml index d04dfe4b..0b557596 100644 --- a/.github/workflows/test_cli_misc.yaml +++ b/.github/workflows/test_cli_misc.yaml @@ -42,17 +42,12 @@ jobs: with: python-version: ${{ matrix.python }} - - name: Install Linux dependencies - if: startsWith(matrix.os, 'ubuntu') + - name: Install Linux packages + if: matrix.os == 'ubuntu-latest' run: | sudo apt-get update sudo apt-get install -y numactl - - name: Install MacOS dependencies - if: startsWith(matrix.os, 'macos') - run: | - brew install numactl - - name: Install requirements run: | pip install --upgrade pip diff --git a/tests/test_cli.py b/tests/test_cli.py index 806eedfa..74abf3b3 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -1,4 +1,5 @@ import os +import sys from logging import getLogger import pytest @@ -80,6 +81,7 @@ def test_cli_exit_code_1(launcher): assert popen_1.returncode == 1 +@pytest.mark.skipif(sys.platform != "linux", reason="Only run on Linux") def test_cli_numactl(): args = [ "optimum-benchmark",