Run tests against Matplotlib main branch #63
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: Run tests against Matplotlib main branch | |
| on: | |
| schedule: | |
| - cron: "18 2 * * 6" | |
| workflow_dispatch: | |
| jobs: | |
| run-mpl-main-tests: | |
| name: Matplotlib main branch tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.13 | |
| 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 git+https://github.com/matplotlib/matplotlib.git@main | |
| pip install -r .github/workflows/requirements-test-pip.txt | |
| - name: Find Matplotlib version | |
| id: mpl-main-version | |
| run: | | |
| echo "matplotlib-version=$(python -c 'import matplotlib;print(matplotlib.__version__)')" >> $GITHUB_OUTPUT | |
| - name: Run unit tests | |
| run: pytest --cov-report=xml | |
| - name: Upload coverage report | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| files: coverage.xml | |
| name: "Matplob main branch ${{ steps.mpl-main-version.outputs.matplotlib-version }}" | |
| token: ${{ secrets.CODECOV_TOKEN }} |