Skip to content

Fix format2tidy KeyError by using dynamic column name #20

Fix format2tidy KeyError by using dynamic column name

Fix format2tidy KeyError by using dynamic column name #20

Workflow file for this run

name: Tests
on:
push:
branches: [ master, main, optimize-quail ]
pull_request:
branches: [ master, main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y ffmpeg
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pytest-cov
pip install torch --index-url https://download.pytorch.org/whl/cpu
pip install openai-whisper
pip install -e .
- name: Run tests
run: |
pytest tests/ -v --tb=short
- name: Run tests with coverage
run: |
pytest tests/ --cov=quail --cov-report=xml --cov-report=term-missing
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
- name: Lint with flake8
run: |
# Stop the build if there are Python syntax errors or undefined names
flake8 quail --count --select=E9,F63,F7,F82 --show-source --statistics
# Exit-zero treats all errors as warnings
flake8 quail --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics