File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,15 +32,14 @@ jobs:
3232 persist-credentials : true
3333
3434 # Setup Python environment
35- - uses : actions/setup-python@v6.0.0
35+ - name : Set up Python and install dependencies
36+ uses : actions/setup-python@v6.1.0
3637 with :
3738 python-version : ' 3.13'
39+ pip-install : ruff prek
3840
39- # Install formatting tools
40- - name : Install formatting tools
41- run : |
42- python -m pip install ruff prek
43- python -m pip list
41+ - name : List installed packages
42+ run : python -m pip list
4443
4544 # Run "make format" and commit the change to the PR branch
4645 - name : Commit to the PR branch if any changes
Original file line number Diff line number Diff line change @@ -49,13 +49,11 @@ jobs:
4949 fetch-depth : 0
5050 persist-credentials : false
5151
52- - name : Set up Python
53- uses : actions/setup-python@v6.0 .0
52+ - name : Set up Python and install dependencies
53+ uses : actions/setup-python@v6.1 .0
5454 with :
5555 python-version : ' 3.13'
56-
57- - name : Install dependencies
58- run : python -m pip install build
56+ pip-install : build
5957
6058 # This step is only necessary for testing purposes and for TestPyPI
6159 - name : Fix up version string for TestPyPI
Original file line number Diff line number Diff line change @@ -30,16 +30,14 @@ jobs:
3030 with :
3131 persist-credentials : false
3232
33- # Setup Python
34- - name : Set up Python
35- uses : actions/setup-python@v6.0.0
33+ - name : Set up Python and install dependencies
34+ uses : actions/setup-python@v6.1.0
3635 with :
3736 python-version : ' 3.13'
37+ pip-install : ruff prek
3838
39- - name : Install packages
40- run : |
41- python -m pip install ruff prek
42- python -m pip list
39+ - name : List installed packages
40+ run : python -m pip list
4341
4442 - name : Formatting check (ruff + prek)
4543 run : |
Original file line number Diff line number Diff line change @@ -41,23 +41,22 @@ jobs:
4141
4242 # Setup Python
4343 - name : Set up Python
44- uses : actions/setup-python@v6.0 .0
44+ uses : actions/setup-python@v6.1 .0
4545 with :
4646 python-version : ' 3.13'
47-
48- - name : Install packages
49- run : |
5047 # Need to install four groups of packages:
5148 # 1. required packages
5249 # 2. optional packages
5350 # 3. type checker and stub packages
5451 # 4. other packages that are used somewhere in PyGMT
55- python -m pip install \
56- numpy pandas xarray packaging \
57- contextily geopandas ipython pyarrow rioxarray \
58- mypy pandas-stubs pyarrow-stubs \
52+ pip- install : |
53+ numpy pandas xarray packaging
54+ contextily geopandas ipython pyarrow rioxarray
55+ mypy pandas-stubs pyarrow-stubs
5956 matplotlib pytest
60- python -m pip list
57+
58+ - name : List install packages
59+ run : python -m pip list
6160
6261 - name : Static type check
6362 run : make typecheck
You can’t perform that action at this time.
0 commit comments