Skip to content

Toyplot version 2.1.0 #97

Toyplot version 2.1.0

Toyplot version 2.1.0 #97

name: Regression tests
on:
push:
branches: [ main, remove-animation ]
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", "3.13", "3.14"]
numpy-version: ["numpy>=2.0.0"]
steps:
- uses: actions/checkout@v6
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends ffmpeg ghostscript
python -m pip install --upgrade pip
python -m pip install coveralls
python -m pip install nbformat
python -m pip install "${{ matrix.numpy-version }}"
python -m pip install "./[all]"
- name: Run tests
run: |
coverage run --source toyplot -m behave --tags=~wip --logging-level INFO --no-logcapture
coverage report
- name: Upload coverage to Coveralls
run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Archive failed tests
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: failed-tests-${{ matrix.python-version }}
path: features/failed
if-no-files-found: ignore