From 8ef5c8a51c6a5905d4fb2323cd1cc50ac012612a Mon Sep 17 00:00:00 2001 From: "U. Artie Eoff" Date: Wed, 14 Aug 2024 11:10:05 -0400 Subject: [PATCH] workflow: add unit test Signed-off-by: U. Artie Eoff --- .github/workflows/unit.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/unit.yml diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml new file mode 100644 index 00000000..32dc2854 --- /dev/null +++ b/.github/workflows/unit.yml @@ -0,0 +1,33 @@ +name: unit + +on: [ push, pull_request ] + +jobs: + test: + strategy: + matrix: + ubuntu-version: [ "ubuntu-20.04", "ubuntu-22.04", "ubuntu-latest" ] + runs-on: ${{ matrix.ubuntu-version }} + steps: + + - name: Checkout + uses: actions/checkout@v4 + with: + lfs: 'true' + + - name: Setup python + uses: actions/setup-python@v4 + with: + python-version: "3.10" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + sudo sysctl kernel.dmesg_restrict=0 + + - name: Test "list" + run: ./vaapi-fits list + + - name: Test "self" + run: ./vaapi-fits run --pl NA -vv --parallel-metrics --call-timeout 10 --device /dev/null --ctapr 0 test/self