Skip to content

Remove mayavi as a plotting backend #146

Remove mayavi as a plotting backend

Remove mayavi as a plotting backend #146

Workflow file for this run

# GitHub Actions workflow for testing and continuous integration.
#
# This file performs testing using tox and tox.ini to define and configure the test environments.
name: CI Tests
on:
push:
branches:
- main
# tags: # run CI if specific tags are pushed
pull_request:
# branches: # only build on PRs against 'main' if you need to further limit when CI is run.
# - main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
env:
SETUP_XVFB: True # avoid issues if mpl tries to open a GUI window
TOXARGS: '-v'
jobs:
# Github Actions supports ubuntu, windows, and macos virtual environments:
# https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners
ci_tests:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
if: "!(contains(github.event.head_commit.message, '[skip ci]') || contains(github.event.head_commit.message, '[ci skip]'))"
strategy:
matrix:
include:
#- name: Code style checks
# os: ubuntu-latest
# python: 3.x
# tox_env: codestyle
- name: Python 3.12 with sherpa fitting
os: ubuntu-latest
python: "3.12"
tox_env: 'py312-test-fit'
#- name: Python 3.8 with all optional dependencies and coverage checking
# os: ubuntu-latest
# python: 3.8
# tox_env: py38-test-alldeps-cov
# - name: Python 3.7 with oldest supported version of all dependencies
# os: ubuntu-16.04
# python: 3.7
# tox_env: py37-test-oldestdeps
- name: Python 3.14 with latest dev versions of key dependencies
os: ubuntu-latest
python: 3.14
tox_env: 'py314-test-devdeps'
# - name: Test building of Sphinx docs
# os: ubuntu-latest
# python: 3.x
# tox_env: build_docs
steps:
- name: Check out repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version: ${{ matrix.python }}
- name: Install base dependencies
run: |
python -m pip install --upgrade pip setuptools tox
- name: Install marxs itself
run: |
python -m pip install ".[test]"
- name: Install graphviz dependency
if: "endsWith(matrix.tox_env, 'build_docs')"
run: sudo apt-get -y install graphviz
- name: Print Python env
run: |
python --version
python -m pip list
- name: Run tests
run: |
python -m tox -e ${{ matrix.tox_env }} -- ${{ matrix.toxposargs }}