Skip to content

Commit

Permalink
gh/workflows: add simple unit test
Browse files Browse the repository at this point in the history
Add GitHub workflow to execute simple unit tests on
a GitHub runner that doesn't require a GPU.

Signed-off-by: U. Artie Eoff <[email protected]>
  • Loading branch information
uartie committed Aug 15, 2024
1 parent 5ad0935 commit 3ca8188
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: unit

on: [ push, pull_request ]

jobs:
test:
continue-on-error: true

strategy:
matrix:
ubuntu-version: [ "ubuntu-22.04", "ubuntu-24.04", "ubuntu-latest" ]
python-version: [ "3.10", "3.11", "3.12" ]

runs-on: ${{ matrix.ubuntu-version }}

steps:

- name: Checkout
uses: actions/checkout@v4
with:
lfs: 'true'

- name: Setup python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- 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 --device /dev/null -vv --parallel-metrics --call-timeout 10 --ctapr 0 test/self

0 comments on commit 3ca8188

Please sign in to comment.