-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Python 3.10 in Continuous Integration tests #1577
Changes from all commits
eec37af
e197bde
d73da3f
c7bca7d
2b9abf7
76bbf2c
00cafd7
36ce2d3
f0e8e76
2ce685e
2a4f15a
63cd1d0
57d42cc
56d044b
bfd8527
c32e6c9
20854ee
a462adc
31e8908
69d4e67
0a9007d
0604c95
f692874
b5a5ab5
a4b10af
fca7a68
0772260
afed7c9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [3.9] | ||
python-version: ['3.10'] | ||
os: [ubuntu-latest, macOS-11.0, windows-2022] | ||
gmt_git_ref: [master] | ||
timeout-minutes: 30 | ||
|
@@ -77,7 +77,7 @@ jobs: | |
uses: conda-incubator/[email protected] | ||
with: | ||
activate-environment: pygmt | ||
python-version: ${{ matrix.python-version }} | ||
# python-version: ${{ matrix.python-version }} | ||
channels: conda-forge,nodefaults | ||
channel-priority: strict | ||
miniforge-version: latest | ||
|
@@ -88,11 +88,13 @@ jobs: | |
# Install dependencies from conda-forge | ||
- name: Install dependencies | ||
run: | | ||
mamba install ninja cmake libblas libcblas liblapack fftw gdal geopandas \ | ||
ghostscript libnetcdf hdf5 zlib curl pcre make dvc | ||
pip install --pre numpy pandas xarray netCDF4 packaging \ | ||
ipython pytest-cov pytest-mpl pytest>=6.0 sphinx-gallery \ | ||
tomli | ||
mamba install python=${{ matrix.python-version }} \ | ||
ninja cmake libblas libcblas liblapack fftw libgdal \ | ||
geopandas ghostscript libnetcdf hdf5 zlib curl pcre make | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you think we should install geopandas using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ideally yes, and I did try it (see 69d4e67), but
So I had to revert back to using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. FYI, Python 3.10 support in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we're waiting for the wheels to come out, why shouldn't we wait to upgrade to Python 3.10? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
If I'm reading your sentence correctly, no, we don't have to wait for the Since geopandas/fiona is an optional dependency for PyGMT, I think we can just push ahead with this PR as is (i.e. stick with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems the new fiona release will take at least another month (Toblerity/Fiona#1053). I think we don't need to wait for it. |
||
pip install --pre --prefer-binary \ | ||
numpy pandas xarray netCDF4 packaging \ | ||
dvc ipython 'pytest>=6.0' pytest-cov \ | ||
pytest-mpl sphinx-gallery tomli | ||
|
||
# Build and install latest GMT from GitHub | ||
- name: Install GMT ${{ matrix.gmt_git_ref }} branch (Linux/macOS) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any special reason to comment out this line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
setup-miniconda
action won't work with Python 3.10, because there isn't a miniconda or mambaforge version with Python 3.10 yet (see https://repo.anaconda.com/miniconda/ and https://github.com/conda-forge/miniforge/releases). The Python 3.10 install step happens later below.