-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (38 loc) · 1.34 KB
/
matplotlib-main.yml
File metadata and controls
48 lines (38 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# 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 }}