workflow: add unit test #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: unit | |
on: [ push, pull_request ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
lfs: 'true' | |
- name: Setup python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install slash numpy scikit-image distro psutil py-cpuinfo matplotlib | |
- name: Test "list" | |
run: ./vaapi-fits list | |
- name: Test "self" | |
run: ./vaapi-fits run --pl NA --parallel-metrics --call-timeout 10 --device /dev/null --ctapr 0 test/self |