From 972819715d5c525ab741809299580c2546f81a07 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 4 Aug 2026 20:22:37 +0000 Subject: [PATCH 1/3] Build(deps): Bump actions/setup-python from 6.3.0 to 7.0.0 Bumps [actions/setup-python](https://github.com/actions/setup-python) from 6.3.0 to 7.0.0. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/ece7cb06caefa5fff74198d8649806c4678c61a1...5fda3b95a4ea91299a34e894583c3862153e4b97) --- updated-dependencies: - dependency-name: actions/setup-python dependency-version: 7.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/format-command.yml | 2 +- .github/workflows/publish-to-pypi.yml | 2 +- .github/workflows/style_checks.yaml | 2 +- .github/workflows/type_checks.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/format-command.yml b/.github/workflows/format-command.yml index 1ba3b38f35c..b35345567b9 100644 --- a/.github/workflows/format-command.yml +++ b/.github/workflows/format-command.yml @@ -35,7 +35,7 @@ jobs: # Setup Python environment - name: Set up Python and install dependencies - uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0 + uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 with: python-version: '3.14' pip-install: ruff prek # zizmor: ignore[misfeature] diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index b427c91abd3..81bc19a2933 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -50,7 +50,7 @@ jobs: persist-credentials: false - name: Set up Python and install dependencies - uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0 + uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 with: python-version: '3.14' pip-install: build # zizmor: ignore[misfeature] diff --git a/.github/workflows/style_checks.yaml b/.github/workflows/style_checks.yaml index c21637eda72..f16994731d3 100644 --- a/.github/workflows/style_checks.yaml +++ b/.github/workflows/style_checks.yaml @@ -31,7 +31,7 @@ jobs: persist-credentials: false - name: Set up Python and install dependencies - uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0 + uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 with: python-version: '3.14' pip-install: ruff prek # zizmor: ignore[misfeature] diff --git a/.github/workflows/type_checks.yml b/.github/workflows/type_checks.yml index db1bcdef571..022eaccf96b 100644 --- a/.github/workflows/type_checks.yml +++ b/.github/workflows/type_checks.yml @@ -41,7 +41,7 @@ jobs: # Setup Python - name: Set up Python - uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0 + uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 with: python-version: '3.14' # Need to install following packages: From 1640fa7bbd485dd393b992e94a0efb0f83b225fd Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Thu, 6 Aug 2026 00:24:26 +0800 Subject: [PATCH 2/3] Revert "Build(deps): Bump actions/setup-python from 6.0.0 to 6.1.0 (#4237)" This reverts commit c43e91abb6b7016ada099feaeab0415bbce49592. --- .github/workflows/format-command.yml | 10 +++++----- .github/workflows/publish-to-pypi.yml | 6 ++++-- .github/workflows/style_checks.yaml | 9 +++++---- .github/workflows/type_checks.yml | 22 +++++++++++++--------- 4 files changed, 27 insertions(+), 20 deletions(-) diff --git a/.github/workflows/format-command.yml b/.github/workflows/format-command.yml index b35345567b9..6fa80bb5b29 100644 --- a/.github/workflows/format-command.yml +++ b/.github/workflows/format-command.yml @@ -33,15 +33,15 @@ jobs: ref: ${{ github.event.client_payload.pull_request.head.ref }} persist-credentials: true - # Setup Python environment - - name: Set up Python and install dependencies + - name: Set up Python uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 with: python-version: '3.14' - pip-install: ruff prek # zizmor: ignore[misfeature] - - name: List installed packages - run: python -m pip list + - name: Install formatting tools + run: | + python -m pip install ruff prek + python -m pip list # Run "make format" and commit the change to the PR branch - name: Commit to the PR branch if any changes diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 81bc19a2933..8a034c69125 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -49,11 +49,13 @@ jobs: fetch-depth: 0 persist-credentials: false - - name: Set up Python and install dependencies + - name: Set up Python uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 with: python-version: '3.14' - pip-install: build # zizmor: ignore[misfeature] + + - name: Install dependencies + run: python -m pip install build # This step is only necessary for testing purposes and for TestPyPI - name: Fix up version string for TestPyPI diff --git a/.github/workflows/style_checks.yaml b/.github/workflows/style_checks.yaml index f16994731d3..8679c979e53 100644 --- a/.github/workflows/style_checks.yaml +++ b/.github/workflows/style_checks.yaml @@ -30,14 +30,15 @@ jobs: with: persist-credentials: false - - name: Set up Python and install dependencies + - name: Set up Python uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 with: python-version: '3.14' - pip-install: ruff prek # zizmor: ignore[misfeature] - - name: List installed packages - run: python -m pip list + - name: Install packages + run: | + python -m pip install ruff prek + python -m pip list - name: Formatting check (Ruff + prek) run: | diff --git a/.github/workflows/type_checks.yml b/.github/workflows/type_checks.yml index 022eaccf96b..3b97eee037a 100644 --- a/.github/workflows/type_checks.yml +++ b/.github/workflows/type_checks.yml @@ -44,16 +44,20 @@ jobs: uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 with: python-version: '3.14' - # Need to install following packages: + + - name: Install packages + run: | + # Need to install four groups of packages: # 1. required packages - # 2. type checker and stub packages - # 3. other packages that are used somewhere in PyGMT - pip-install: | # zizmor: ignore[misfeature] - numpy pandas xarray packaging - mypy pandas-stubs pyarrow-stubs - - - name: List install packages - run: python -m pip list + # 2. optional packages + # 3. type checker and stub packages + # 4. other packages that are used somewhere in PyGMT + python -m pip install \ + numpy pandas xarray packaging \ + contextily geopandas ipython pyarrow rioxarray \ + mypy pandas-stubs pyarrow-stubs \ + matplotlib pytest + python -m pip list - name: Static type check run: make typecheck From fae8d5f3a8590af3479c5fb9d3f6619d4593af0d Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Thu, 6 Aug 2026 00:28:32 +0800 Subject: [PATCH 3/3] Fix the revert changes in type_checks.yml --- .github/workflows/type_checks.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/type_checks.yml b/.github/workflows/type_checks.yml index 3b97eee037a..8deb69ab243 100644 --- a/.github/workflows/type_checks.yml +++ b/.github/workflows/type_checks.yml @@ -47,16 +47,11 @@ jobs: - name: Install packages run: | - # Need to install four groups of packages: + # Need to install following packages: # 1. required packages - # 2. optional packages - # 3. type checker and stub packages - # 4. other packages that are used somewhere in PyGMT - python -m pip install \ - numpy pandas xarray packaging \ - contextily geopandas ipython pyarrow rioxarray \ - mypy pandas-stubs pyarrow-stubs \ - matplotlib pytest + # 2. type checker and stub packages + # 3. other packages that are used somewhere in PyGMT + python -m pip install numpy pandas xarray packaging mypy pandas-stubs pyarrow-stubs python -m pip list - name: Static type check