Skip to content

Commit

Permalink
Support Python 3.9 (#689)
Browse files Browse the repository at this point in the history
Test PyGMT with Python 3.9

* Use Python 3.8 in environment.yml and style checks CI
* Run Python 3.6 tests on master branch only to conserve CI resources
  • Loading branch information
weiji14 authored Nov 14, 2020
1 parent c7c5eae commit d27a42d
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.7
python-version: 3.8

- name: Install packages
run: pip install black blackdoc flake8 pylint
Expand All @@ -42,8 +42,14 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.6, 3.7, 3.8]
python-version: [3.6, 3.7, 3.8, 3.9]
os: [ubuntu-latest, macOS-latest, windows-latest]
# Run Python 3.6 tests on master branch only to conserve CI resources
isMaster:
- ${{ contains(github.ref, 'master') }}
exclude:
- isMaster: false # i.e. on Pull Requests
python-version: 3.6
# environmental variables used in coverage
env:
OS: ${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_tests_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.8]
python-version: [3.9]
os: [ubuntu-20.04, macOS-10.15]
gmt_git_ref: [master]
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.9

- name: Install dependencies
run: python -m pip install setuptools wheel
Expand Down
1 change: 0 additions & 1 deletion doc/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,3 @@ e.g. in a terminal run::
export GMT_LIBRARY_PATH=$HOME/anaconda3/envs/pygmt/lib
# Windows
set "GMT_LIBRARY_PATH=C:\Users\USERNAME\Anaconda3\envs\pygmt\Library\bin\"

2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ channels:
- conda-forge
- defaults
dependencies:
- python=3.7
- python=3.8
- pip
- gmt=6.1.1
- numpy
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"License :: OSI Approved :: {}".format(LICENSE),
]
PLATFORMS = "Any"
Expand Down

0 comments on commit d27a42d

Please sign in to comment.