Trigger events via standard callbacks in widget testing. #27295
Workflow file for this run
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
--- | |
name: Linting | |
on: [pull_request] | |
permissions: | |
contents: read | |
jobs: | |
ruff: | |
name: ruff | |
runs-on: ubuntu-latest | |
permissions: | |
checks: write | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
persist-credentials: false | |
- name: Set up Python 3 | |
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 | |
with: | |
python-version: '3.11' | |
- name: Install ruff | |
run: pip3 install ruff | |
- name: Set up reviewdog | |
uses: reviewdog/action-setup@e04ffabe3898a0af8d0fb1af00c188831c4b5893 # v1.3.9 | |
- name: Run ruff | |
env: | |
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
set -o pipefail | |
ruff check --output-format rdjson | \ | |
reviewdog -f=rdjson \ | |
-tee -reporter=github-check -filter-mode nofilter | |
mypy: | |
name: mypy | |
runs-on: ubuntu-latest | |
permissions: | |
checks: write | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
persist-credentials: false | |
- name: Set up Python 3 | |
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 | |
with: | |
python-version: '3.11' | |
- name: Install mypy | |
run: pip3 install -r requirements/testing/mypy.txt -r requirements/testing/all.txt | |
- name: Set up reviewdog | |
uses: reviewdog/action-setup@e04ffabe3898a0af8d0fb1af00c188831c4b5893 # v1.3.9 | |
- name: Run mypy | |
env: | |
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
set -o pipefail | |
mypy --config pyproject.toml | \ | |
reviewdog -f=mypy -name=mypy \ | |
-tee -reporter=github-check -filter-mode nofilter | |
eslint: | |
name: eslint | |
runs-on: ubuntu-latest | |
permissions: | |
checks: write | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
persist-credentials: false | |
- name: eslint | |
uses: reviewdog/action-eslint@2fee6dd72a5419ff4113f694e2068d2a03bb35dd # v1.33.2 | |
with: | |
filter_mode: nofilter | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
reporter: github-check | |
workdir: 'lib/matplotlib/backends/web_backend/' |