Skip to content

fix: repair tests to work with non-zero medians #110

fix: repair tests to work with non-zero medians

fix: repair tests to work with non-zero medians #110

Workflow file for this run

name: Pytest
on: [push, pull_request]
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version:
- "3.6"
- "3.7"
- "3.8"
- "3.9"
include:
- os: "ubuntu-latest"
# no Python 3.6 in ubuntu>20.04.
- os: "ubuntu-20.04"
python-version: "3.6"
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: pip install -e .[test]
- name: Run unit tests
run: python -m pytest -m "not slow" --cov=compressai -s tests/