Skip to content

Commit 1ac4c59

Browse files
seismanweiji14
andauthored
Update "GMT Dev Tests" workflow to test macOS-11.0 and pre-release Python packages (#1105)
- Install pre-release Python packages using pip install --pre, so that the workflow also tests dev Python packages - Change "macOS-10.15" to "macOS-11.0" - Change "ubuntu-20.04" to "ubuntu-latest" (ubuntu-latest is just an alias of ubuntu-20.04) - Add "activate-environment: pygmt" to the setup-miniconda step - Add more paths to paths-ignore Co-authored-by: Wei Ji <[email protected]>
1 parent 1b42aa4 commit 1ac4c59

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/ci_tests_dev.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# This workflow installs PyGMT dependencies, builds documentation and runs tests on GMT dev version
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
1+
# This workflow installs PyGMT and runs tests on GMT dev version
32

43
name: GMT Dev Tests
54

@@ -10,10 +9,13 @@ on:
109
types: [ready_for_review]
1110
paths-ignore:
1211
- 'doc/**'
12+
- 'examples/**'
1313
- '*.md'
1414
- '*.json'
1515
- 'README.rst'
1616
- 'LICENSE.txt'
17+
- '.gitignore'
18+
- '.pylintrc'
1719
repository_dispatch:
1820
types: [test-gmt-dev-command]
1921
# Schedule daily tests
@@ -28,7 +30,7 @@ jobs:
2830
fail-fast: false
2931
matrix:
3032
python-version: [3.9]
31-
os: [ubuntu-20.04, macOS-10.15, windows-latest]
33+
os: [ubuntu-latest, macOS-11.0, windows-latest]
3234
gmt_git_ref: [master]
3335
defaults:
3436
run:
@@ -73,6 +75,7 @@ jobs:
7375
- name: Setup Miniconda
7476
uses: conda-incubator/[email protected]
7577
with:
78+
activate-environment: pygmt
7679
python-version: ${{ matrix.python-version }}
7780
channels: conda-forge
7881
miniconda-version: "latest"
@@ -81,8 +84,9 @@ jobs:
8184
- name: Install dependencies
8285
run: |
8386
conda install ninja cmake libblas libcblas liblapack fftw gdal \
84-
ghostscript libnetcdf hdf5 zlib curl pcre ipython \
85-
dvc pytest pytest-cov pytest-mpl
87+
ghostscript libnetcdf hdf5 zlib curl pcre make dvc
88+
pip install --pre numpy pandas xarray netCDF4 packaging \
89+
ipython pytest-cov pytest-mpl pytest>=6.0 sphinx-gallery
8690
8791
# Build and install latest GMT from GitHub
8892
- name: Install GMT ${{ matrix.gmt_git_ref }} branch (Linux/macOS)

0 commit comments

Comments
 (0)