Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/" # Location of your workflow files
schedule:
interval: "weekly" # Options: daily, weekly, monthly
8 changes: 6 additions & 2 deletions .github/workflows/asv.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# This workflow checks that any added benchmarks *run* on the latest Matplotlib
# release. It does _not_ update any results.
name: Benchmark Check
permissions:
contents: read
on: [push, pull_request]

jobs:
Expand All @@ -9,19 +11,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false

- name: Set up Python 3
uses: actions/setup-python@v1
with:
python-version: 3.8
python-version: 3.12

- name: Install asv
run: pip3 install asv matplotlib

- name: Run asv
run: |
asv machine --yes
asv dev
asv run

- name: Check benchmarks.json is up to date
run: |
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: GitHub Pages
permissions:
contents: read

on:
push:
Expand All @@ -10,6 +12,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false

- name: Set up Python 3
uses: actions/setup-python@v1
Expand All @@ -23,7 +27,7 @@ jobs:
run: asv publish

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs write permissions matplotlib/mpl-third-party#192 (comment)

with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./html
6 changes: 5 additions & 1 deletion .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: Linting
permissions:
contents: read
Comment on lines +2 to +3
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reviewdog needs write permissions.

on: [pull_request]

jobs:
Expand All @@ -7,11 +9,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false

- name: Set up Python 3
uses: actions/setup-python@v1
with:
python-version: 3.8
python-version: 3.12

- name: Install flake8
run: pip3 install flake8
Expand Down
Loading