Doc: add advanced usage example with separate legends #67
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SPDX-FileCopyrightText: Blair Bonnett | |
| # SPDX-License-Identifier: BSD-3-Clause | |
| name: Continuous integration tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| run-ci-tests: | |
| runs-on: ubuntu-latest | |
| name: "Matplotlib ${{ matrix.matplotlib-version}} on Python ${{ matrix.python-version }}" | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: [3.12, 3.13, 3.14] | |
| matplotlib-version: [ "3.9.4", "3.10.9" ] | |
| # Exclude combinations which don't have pre-built wheels. | |
| exclude: | |
| - python-version: 3.14 | |
| matplotlib-version: "3.9.4" | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "${{ matrix.python-version }}" | |
| architecture: x64 | |
| - name: Install system libraries | |
| run: | | |
| sudo apt-get update | |
| xargs -a .github/workflows/requirements-test-apt.txt sudo apt-get install -y | |
| - name: Install test environment | |
| run: | | |
| pip install -r .github/workflows/requirements-test-pip.txt "matplotlib==${{ matrix.matplotlib-version }}" | |
| - name: Run unit tests | |
| run: pytest --cov-report=xml | |
| - name: Upload coverage report | |
| uses: codecov/codecov-action@v6 | |
| with: | |
| files: coverage.xml | |
| flags: "Matplotlib-${{ matrix.matplotlib-version}}-Python-${{ matrix.python-version }}" | |
| token: ${{ secrets.CODECOV_TOKEN }} |