Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
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: 5 additions & 2 deletions .github/workflows/cibuildwheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ on:
- reopened
- labeled

permissions:
contents: read
permissions: {}

jobs:
build_sdist:
Expand All @@ -37,6 +36,8 @@ jobs:
)
name: Build sdist
runs-on: ubuntu-latest
permissions:
contents: read
outputs:
SDIST_NAME: ${{ steps.sdist.outputs.SDIST_NAME }}

Expand Down Expand Up @@ -93,6 +94,8 @@ jobs:
)
needs: build_sdist
name: Build wheels on ${{ matrix.os }} for ${{ matrix.cibw_archs }}
permissions:
contents: read
runs-on: ${{ matrix.os }}
env:
CIBW_BEFORE_BUILD: >-
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/circleci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
---
name: "CircleCI artifact handling"
on: [status]

permissions: {}

jobs:
circleci_artifacts_redirector_job:
if: "${{ github.event.context == 'ci/circleci: docs-python3' }}"
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/clean_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
name: PR cleanliness
on: [pull_request]

permissions:
contents: read
permissions: {}

jobs:
pr_clean:
runs-on: ubuntu-latest
permissions:
contents: read

steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
schedule:
- cron: '45 19 * * 1'

permissions: {}

jobs:
analyze:
if: github.repository == 'matplotlib/matplotlib'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/conflictcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
pull_request_target:
types: [synchronize]

permissions: {}

jobs:
main:
if: github.repository == 'matplotlib/matplotlib'
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/cygwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ on:
- cron: "47 5 * * 6"
workflow_dispatch:

permissions:
contents: read
permissions: {}

env:
NO_AT_BRIDGE: 1 # Necessary for GTK3 interactive test.
Expand All @@ -47,6 +46,8 @@ jobs:

test-cygwin:
runs-on: windows-latest
permissions:
contents: read
name: Python 3.${{ matrix.python-minor-version }} on Cygwin
# Enable these when Cygwin has Python 3.12.
if: >-
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/good-first-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
issues:
types:
- labeled

permissions: {}

jobs:
add-comment:
if: github.event.label.name == 'Good first issue'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: "Pull Request Labeler"
on:
- pull_request_target

permissions: {}

jobs:
labeler:
permissions:
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
name: Linting
on: [pull_request]

permissions:
contents: read
permissions: {}

jobs:
pre-commit:
name: precommit
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
Expand All @@ -25,6 +26,7 @@ jobs:
name: ruff
runs-on: ubuntu-latest
permissions:
contents: read
checks: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Expand Down Expand Up @@ -54,6 +56,7 @@ jobs:
name: mypy
runs-on: ubuntu-latest
permissions:
contents: read
checks: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Expand Down Expand Up @@ -85,6 +88,7 @@ jobs:
name: eslint
runs-on: ubuntu-latest
permissions:
contents: read
checks: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/mypy-stubtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
name: Mypy Stubtest
on: [pull_request]

permissions:
contents: read
permissions: {}

jobs:
mypy-stubtest:
name: mypy-stubtest
runs-on: ubuntu-latest
permissions:
contents: read
checks: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/nightlies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ on:
# Run on demand with workflow dispatch
workflow_dispatch:

permissions:
actions: read
permissions: {}

jobs:
upload_nightly_wheels:
Expand All @@ -21,6 +20,8 @@ jobs:
# to work in subsequent jobs.
# https://github.com/mamba-org/setup-micromamba#about-login-shells
shell: bash -e -l {0}
permissions:
actions: read
if: github.repository_owner == 'matplotlib'

steps:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pr_welcome.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
issues:
types: opened

permissions: {}

jobs:
greeting:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/stale-tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ on:
schedule:
- cron: '30 1 * * 2,4,6'

permissions: {}

jobs:
stale:
if: github.repository == 'matplotlib/matplotlib'
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/stale@b5d41d4e1d5dceea10e7104786b73624c18a190f # v10.2.0
with:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,15 @@ on:
schedule:
- cron: '30 1 * * 1'

permissions: {}

jobs:
stale:
if: github.repository == 'matplotlib/matplotlib'
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@b5d41d4e1d5dceea10e7104786b73624c18a190f # v10.2.0
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ on:
- cron: "47 5 * * 6"
workflow_dispatch:

permissions: {}

env:
NO_AT_BRIDGE: 1 # Necessary for GTK3 interactive test.
OPENBLAS_NUM_THREADS: 1
Expand Down
Loading