Skip to content

Merge pull request #167 from jbohnslav/jbohnslav/202408_fix #11

Merge pull request #167 from jbohnslav/jbohnslav/202408_fix

Merge pull request #167 from jbohnslav/jbohnslav/202408_fix #11

Workflow file for this run

name: CPU Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
name: Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, windows-latest, macos-13]
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.7
uses: actions/setup-python@v4
with:
python-version: '3.7'
- name: Install FFMPEG (Ubuntu)
if: matrix.os == 'ubuntu-20.04'
run: |
sudo apt-get update
sudo apt-get install -y ffmpeg
- name: Install FFMPEG (Windows)
if: matrix.os == 'windows-latest'
run: |
choco install ffmpeg
- name: Install FFMPEG (macOS)
if: matrix.os == 'macos-13'
run: |
brew install ffmpeg
- name: Install PySide2
run: |
python -m pip install --upgrade pip
pip install "pyside2==5.13.2"
- name: Install PyTorch CPU
run: |
pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
- name: Install package and test dependencies
run: |
python -m pip install --upgrade "pip<24.0"
pip install -r requirements.txt
pip install pytest pytest-cov
python setup.py develop
- name: Setup test data
run: |
python setup_tests.py
- name: Run CPU tests
run: |
pytest -v -m "not gpu" tests/