Fix MicroDVD writer emitting unreadable {0}{0} fps declaration #104
Workflow file for this run
This file contains hidden or 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
| # This is a basic workflow to help you get started with Actions | |
| name: CI | |
| # Controls when the workflow will run | |
| on: | |
| # Triggers the workflow on push or pull request events but only for the "master" branch | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| jobs: | |
| run-tests: | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "3.15"] | |
| permissions: | |
| contents: read | |
| packages: read | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install uv and Python ${{ matrix.python-version }} | |
| uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 | |
| with: | |
| version: "0.11.14" | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: uv sync --locked --all-extras --dev | |
| - name: Typecheck with mypy | |
| run: uv run mypy --strict | |
| - name: Check with ruff | |
| run: uv run ruff check | |
| - name: Test with pytest | |
| run: uv run pytest | |
| - name: Generate coverage report | |
| run: uv run pytest --cov=./ --cov-report=xml | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| env_vars: OS,PYTHON | |
| - name: Build sdist and wheel | |
| run: | | |
| uv build --out-dir build-test | |
| cd build-test | |
| tar xf pysubs2-*.tar.gz | |
| - name: Test with pytest (sdist) | |
| run: | | |
| cd build-test | |
| cd $(find -maxdepth 1 -type d -name 'pysubs2-*') | |
| uv pip install -e . | |
| uv run pytest ../../tests | |
| - name: Test with pytest (wheel) | |
| run: | | |
| cd build-test | |
| uv pip install pysubs2-*.whl | |
| cd $(find -maxdepth 1 -type d -name 'pysubs2-*') | |
| uv run pytest ../../tests |