Skip to content

Updated testing action #10

Updated testing action

Updated testing action #10

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Test Manim Studio
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Ubuntu dependencies
run: |
sudo apt update
sudo apt install -y build-essential python3-dev libcairo2-dev libpango1.0-dev ffmpeg
sudo apt install -y xvfb x11-utils libxkbcommon-x11-0
- name: Install Python dependencies
run: |
python -m pip install pipx coverage
python -m pipx install poetry
poetry install
- name: Test with pytest
run: |
sudo catchsegv xvfb-run --auto-servernum `which coverage` run -m "poetry run pytest"