-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (51 loc) · 1.74 KB
/
Copy pathpython-package.yml
File metadata and controls
62 lines (51 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# SPDX-FileCopyrightText: 2026 ExploreMaths
# SPDX-License-Identifier: MIT
name: Python package
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-manim-env
with:
python-version: ${{ matrix.python-version }}
install-full-deps: "true"
- name: Install dev dependencies and all extras
run: |
pip install flake8 pytest-cov -e ".[dev,all]"
- name: Lint with flake8
run: |
flake8 manim_extensions tests --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 manim_extensions tests --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
xvfb-run -a pytest tests/ -v --cov=manim_extensions --cov-report=term-missing --cov-fail-under=35
# Verify the declared `manim>=0.21.0` against the newest manim release,
# so compatibility is tested rather than merely claimed.
manim-latest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-manim-env
with:
python-version: "3.13"
install-full-deps: "true"
- name: Install dev dependencies and all extras
run: |
pip install -e ".[dev,all]"
- name: Upgrade manim to the latest release
run: |
pip install --upgrade manim
python -c "import manim; print('manim', manim.__version__)"
- name: Test with pytest
run: |
xvfb-run -a pytest tests/ -q