|
20 | 20 | fail-fast: false |
21 | 21 | matrix: |
22 | 22 | python-version: [3.9] |
23 | | - os: [ubuntu-20.04, macOS-10.15] |
| 23 | + os: [ubuntu-20.04, macOS-10.15, windows-latest] |
24 | 24 | gmt_git_ref: [master] |
25 | | - env: |
26 | | - # LD_LIBRARY_PATH: ${{ github.workspace }}/gmt/lib:$LD_LIBRARY_PATH |
27 | | - GMT_INSTALL_DIR: ${{ github.workspace }}/gmt-install-dir |
28 | | - GMT_LIBRARY_PATH: ${{ github.workspace }}/gmt-install-dir/lib |
29 | 25 | defaults: |
30 | 26 | run: |
31 | 27 | shell: bash -l {0} |
@@ -57,10 +53,16 @@ jobs: |
57 | 53 | run: conda install cmake libblas libcblas liblapack fftw gdal ghostscript libnetcdf hdf5 zlib curl pcre ipython pytest pytest-cov pytest-mpl |
58 | 54 |
|
59 | 55 | # Build and install latest GMT from GitHub |
60 | | - - name: Install GMT ${{ matrix.gmt_git_ref }} branch |
| 56 | + - name: Install GMT ${{ matrix.gmt_git_ref }} branch (Linux/macOS) |
61 | 57 | run: curl https://raw.githubusercontent.com/GenericMappingTools/gmt/master/ci/build-gmt.sh | bash |
62 | 58 | env: |
63 | 59 | GMT_GIT_REF: ${{ matrix.gmt_git_ref }} |
| 60 | + GMT_INSTALL_DIR: ${{ github.workspace }}/gmt-install-dir |
| 61 | + if: runner.os != 'Windows' |
| 62 | + |
| 63 | + - name: Install GMT dev version from conda-forge (Windows) |
| 64 | + run: conda install -c conda-forge/label/dev gmt |
| 65 | + if: runner.os == 'Windows' |
64 | 66 |
|
65 | 67 | # Download cached remote files (artifacts) from GitHub |
66 | 68 | - name: Download remote data from GitHub |
|
86 | 88 | pip install dist/* |
87 | 89 |
|
88 | 90 | # Run the tests |
89 | | - - name: Test with pytest |
| 91 | + - name: Test with pytest (Linux/macOS) |
| 92 | + run: make test PYTEST_EXTRA="-r P" |
| 93 | + env: |
| 94 | + GMT_LIBRARY_PATH: ${{ github.workspace }}/gmt-install-dir/lib |
| 95 | + if: runner.os != 'Windows' |
| 96 | + |
| 97 | + # Run the tests |
| 98 | + - name: Test with pytest (Windows) |
90 | 99 | run: make test PYTEST_EXTRA="-r P" |
| 100 | + if: runner.os == 'Windows' |
91 | 101 |
|
92 | 102 | # Upload diff images on test failure |
93 | 103 | - name: Upload diff images if any test fails |
|
0 commit comments