Run tests against Matplotlib main branch #52
This file contains 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@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
architecture: x64 | |
- name: Install system libraries | |
run: | | |
sudo apt update | |
xargs -a .github/workflows/requirements-test-apt.txt sudo apt 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 "::set-output name=matplotlib-version::$(python -c 'import matplotlib;print(matplotlib.__version__)')" | |
- 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 }} |