feat: add profile subtraction utility #897
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
| name: Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| tests: | |
| # Run unless it's a draft PR. Pushes to main & manual runs always pass this. | |
| if: ${{ github.event_name != 'pull_request' || !github.event.pull_request.draft }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.11", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Task | |
| uses: go-task/setup-task@v1 | |
| - name: Install system-level dependencies for Manim | |
| run: sudo apt-get update && sudo apt-get install -y build-essential pkg-config libcairo2-dev libpango1.0-dev ffmpeg fonts-noto-core | |
| - name: pytest | |
| run: task test-slow PYTHON_VERSION=${{ matrix.python-version }} | |
| - name: Upload snapshot frames | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: snapshot-frames-py${{ matrix.python-version }} | |
| path: /tmp/pytest-of-runner/pytest-*/test_stv_animation_video_snaps*/frames/ | |
| if-no-files-found: ignore |