Skip to content

2D plotting using ortho projections #57

2D plotting using ortho projections

2D plotting using ortho projections #57

Workflow file for this run

name: Tests
on:
pull_request:
push:
branches:
- main
jobs:
#----------------------------------- code-quality -----------------------------------#
code-quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry==1.7.1
- name: Set up Python 3
uses: actions/setup-python@v4
with:
python-version: 3.12
- name: Install dependencies
run: poetry install --with lint
- name: Lint with ruff
run: poetry run ruff .
#-------------------------------------- tests ---------------------------------------#
tests:
needs: code-quality
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install pyqtgraph dependencies
# https://pytest-qt.readthedocs.io/en/latest/troubleshooting.html#github-actions
uses: tlambert03/setup-qt-libs@v1
- name: Setup headless display
uses: pyvista/setup-headless-display-action@v2
- name: Install poetry
run: pipx install poetry==1.7.1
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
poetry install --with test --all-extras
pip install pytest-xdist
- name: Run tests
run: poetry run pytest
test_sympy_dev:
needs: code-quality
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install pyqtgraph dependencies
# https://pytest-qt.readthedocs.io/en/latest/troubleshooting.html#github-actions
uses: tlambert03/setup-qt-libs@v1
- name: Setup headless display
uses: pyvista/setup-headless-display-action@v2
- name: Install poetry
run: pipx install poetry==1.7.1
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.12
- name: Install dependencies
run: |
poetry install --with test --all-extras
pip install pytest-xdist
pip uninstall sympy
pip install git+https://github.com/sympy/sympy.git
- name: Run tests
run: poetry run pytest
#------------------------------------ docs-tests ------------------------------------#
test_docs_job:
needs: code-quality
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install pyqtgraph dependencies
# https://pytest-qt.readthedocs.io/en/latest/troubleshooting.html#github-actions
uses: tlambert03/setup-qt-libs@v1
- name: Setup headless display
uses: pyvista/setup-headless-display-action@v2
- name: Install poetry
run: pipx install poetry==1.7.1
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: poetry install --with docs --all-extras
- name: make the sphinx docs
run: |
poetry run make -C docs clean
poetry run make -C docs html