Skip to content

Working with latest matplotlib, scale_lines also now scales markers. #45

Working with latest matplotlib, scale_lines also now scales markers.

Working with latest matplotlib, scale_lines also now scales markers. #45

Workflow file for this run

name: Validate Python Code
permissions:
contents: read
on:
push:
branches:
- main
pull_request:
branches:
- develop
- main
jobs:
test-mac-linux:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.11", "3.12", "3.13", "3.13t"]
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install OS dependencies
run: |
case "${{ runner.os }}" in
Linux)
sudo apt-get update -yy
sudo apt-get install -yy \
ccache \
inkscape \
ghostscript
if [[ "${{ matrix.os }}" = ubuntu-20.04 ]]; then
sudo apt install -yy libopengl0
fi
;;
macOS)
;;
esac
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
flake8 matplotview --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 matplotview --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
id: pytest
run: |
pytest
- name: Upload images on failure
uses: actions/upload-artifact@v4
if: ${{ failure() && steps.pytest.conclusion == 'failure' }}
with:
name: test-result-images
retention-days: 1
path: result_images/
test-windows:
runs-on: windows-latest
strategy:
matrix:
python-version: ["3.11", "3.12", "3.13", "3.13t"]
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install -r requirements.txt
- name: Test with pytest
id: pytest
run: |
pytest
- name: Upload images on failure
uses: actions/upload-artifact@v4
if: ${{ failure() && steps.pytest.conclusion == 'failure' }}
with:
name: test-result-images
retention-days: 1
path: result_images/