2024-09-09 08:32:55 +00:00
|
|
|
name: Unit Tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main, master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ main, master ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
2024-09-22 09:01:39 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
continue-on-error: true
|
2024-09-09 08:32:55 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
2024-09-22 09:01:39 +00:00
|
|
|
- name: Set up Python
|
|
|
|
uses: actions/setup-python@v4
|
2024-09-09 08:32:55 +00:00
|
|
|
with:
|
|
|
|
python-version: '3.10'
|
|
|
|
- name: Install requirements
|
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
|
|
|
|
pip install -r requirements.txt
|
|
|
|
- name: Run Unit Tests
|
|
|
|
run: |
|
|
|
|
pip install -r tests-unit/requirements.txt
|
|
|
|
python -m pytest tests-unit
|