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
12 changes: 6 additions & 6 deletions .github/workflows/format-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
- name: Set up Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: '3.14'
pip-install: ruff prek # zizmor: ignore[misfeature]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The pip-install parameter is removed in actions/setup-python v7.0.0 (xref: https://redirect.github.com/actions/setup-python/pull/1336).


- 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
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,13 @@ jobs:
fetch-depth: 0
persist-credentials: false

- name: Set up Python and install dependencies
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
- 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
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/style_checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,15 @@ jobs:
with:
persist-credentials: false

- name: Set up Python and install dependencies
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
- 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: |
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/type_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,18 @@ 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'

- name: Install packages
run: |
# Need to install following 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
python -m pip install numpy pandas xarray packaging mypy pandas-stubs pyarrow-stubs
python -m pip list

- name: Static type check
run: make typecheck