Skip to content

Modernization and cleanup #189

Modernization and cleanup

Modernization and cleanup #189

Workflow file for this run

name: Build
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
MAIN_PYTHON_VERSION: "3.12"
jobs:
test:
name: "${{ matrix.os }}: ${{ matrix.python-version }}"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
os: [ubuntu-24.04, windows-latest]
steps:
- uses: actions/checkout@v5
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev]
- name: Run tests
run: |
pytest -v --cov=mediafile --cov=mediafile --cov-report=xml --cov-report=html test/
- name: Upload coverage reports
if: matrix.os == 'ubuntu-24.04' && matrix.python-version == env.MAIN_PYTHON_VERSION
uses: actions/upload-artifact@v4
with:
name: coverage-${{ github.run_id }}
path: htmlcov/
retention-days: 30
style:
name: Style
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set up Python ${{ env.MAIN_PYTHON_VERSION }}
uses: actions/setup-python@v5
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev]
- name: Check style with Ruff
run: |
ruff check --output-format=github .
- name: Check format with Ruff
run: |
ruff format --check .