Code Quality Improvements and Development Infrastructure Updates #9
Workflow file for this run
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: 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/ |