chore: bump version to 0.4.0 #195
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
| name: Build | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: astral-sh/setup-uv@v7 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install libcairo2-dev libpango1.0-dev ffmpeg portaudio19-dev | |
| - name: Install Python dependencies | |
| run: uv sync --dev --frozen | |
| - name: Add virtual environment tools to PATH | |
| run: echo "$PWD/.venv/bin" >> "$GITHUB_PATH" | |
| - name: Check formatting | |
| run: uv run ruff format --check . | |
| - name: Lint | |
| run: uv run ruff check . | |
| - name: Typecheck | |
| run: uv run ty check src/manim_voiceover | |
| - name: Mypy | |
| run: uv run mypy | |
| - name: Test with coverage | |
| run: uv run pytest --cov=manim_voiceover --cov-fail-under=85 | |
| - name: Check duplication | |
| run: uvx slophammer-py@0.3.0 dry . | |
| - name: Check mutations | |
| run: | | |
| uv run mutmut run --max-children 2 | |
| uv run python scripts/check_mutmut_results.py | |
| rm -rf mutants | |
| - name: Audit dependencies | |
| run: uv run pip-audit | |
| - name: Run Slophammer | |
| run: | | |
| uvx slophammer-py@0.3.0 check . | |
| uvx slophammer-py@0.3.0 check . --execute |