Skip to content

Commit 90cda7f

Browse files
authored
Use Python 3.10 in Continuous Integration tests (#1577)
Updating the "GMT Dev Tests" GitHub Actions continuous integration workflows that used Python 3.9 to use Python 3.10 now. * Put quotes around 3.10 so that it doesn't get read as Python 3.1 * Manually install Python 3.10 on ci_tests_dev.yaml * Use pip to install dvc on ci_tests_dev workflow Workaround missing Python 3.10 packages for dvc on conda-forge. * Install numpy before other deps since it is a build dependency for some * Prefer older binary pip packages over newer pip packages Save from having to compile Python 3.10 packages, and fixes installation issues for some libraries like `aiohttp` which have outdated pre-release versions. * Set minimum Python version to 3.8 in README.rst
1 parent a598df9 commit 90cda7f

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

.github/workflows/ci_docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
strategy:
2626
fail-fast: false
2727
matrix:
28-
python-version: [3.9]
28+
python-version: ['3.9']
2929
os: [ubuntu-latest, macOS-latest, windows-latest]
3030
# Is it a draft Pull Request (true or false)?
3131
isDraft:

.github/workflows/ci_tests_dev.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
strategy:
3030
fail-fast: false
3131
matrix:
32-
python-version: [3.9]
32+
python-version: ['3.10']
3333
os: [ubuntu-latest, macOS-11.0, windows-2022]
3434
gmt_git_ref: [master]
3535
timeout-minutes: 30
@@ -77,7 +77,7 @@ jobs:
7777
uses: conda-incubator/[email protected]
7878
with:
7979
activate-environment: pygmt
80-
python-version: ${{ matrix.python-version }}
80+
# python-version: ${{ matrix.python-version }}
8181
channels: conda-forge,nodefaults
8282
channel-priority: strict
8383
miniforge-version: latest
@@ -88,11 +88,13 @@ jobs:
8888
# Install dependencies from conda-forge
8989
- name: Install dependencies
9090
run: |
91-
mamba install ninja cmake libblas libcblas liblapack fftw gdal geopandas \
92-
ghostscript libnetcdf hdf5 zlib curl pcre make dvc
93-
pip install --pre numpy pandas xarray netCDF4 packaging \
94-
ipython pytest-cov pytest-mpl pytest>=6.0 sphinx-gallery \
95-
tomli
91+
mamba install python=${{ matrix.python-version }} \
92+
ninja cmake libblas libcblas liblapack fftw libgdal \
93+
geopandas ghostscript libnetcdf hdf5 zlib curl pcre make
94+
pip install --pre --prefer-binary \
95+
numpy pandas xarray netCDF4 packaging \
96+
dvc ipython 'pytest>=6.0' pytest-cov \
97+
pytest-mpl sphinx-gallery tomli
9698
9799
# Build and install latest GMT from GitHub
98100
- name: Install GMT ${{ matrix.gmt_git_ref }} branch (Linux/macOS)

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ Compatibility with GMT/Python/NumPy versions
218218
* - `Dev <https://github.com/GenericMappingTools/pygmt/milestone/9>`_ (upcoming release)
219219
- `Dev Documentation <https://www.pygmt.org/dev>`_ (reflects `main branch <https://github.com/GenericMappingTools/pygmt>`_)
220220
- >=6.3.0
221-
- >=3.7
221+
- >=3.8
222222
- >=1.19
223223
* - `v0.5.0 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.5.0>`_ (latest release)
224224
- `v0.5.0 Documentation <https://www.pygmt.org/v0.5.0>`_

0 commit comments

Comments
 (0)