|
1 |
| -# This workflow installs PyGMT dependencies, build documentation and run tests |
2 |
| -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions |
| 1 | +# This workflow installs PyGMT, build and deploy documentation |
3 | 2 |
|
4 |
| -name: Tests |
| 3 | +name: Docs |
5 | 4 |
|
6 | 5 | on:
|
7 | 6 | push:
|
|
28 | 27 | strategy:
|
29 | 28 | fail-fast: false
|
30 | 29 | matrix:
|
31 |
| - python-version: [3.7, 3.8, 3.9] |
| 30 | + python-version: [3.9] |
32 | 31 | os: [ubuntu-latest, macOS-latest, windows-latest]
|
33 | 32 | # Is it a draft Pull Request (true or false)?
|
34 | 33 | isDraft:
|
|
46 | 45 | python-version: 3.8
|
47 | 46 | isDraft: true
|
48 | 47 |
|
49 |
| - # environmental variables used in coverage |
50 |
| - env: |
51 |
| - OS: ${{ matrix.os }} |
52 |
| - PYTHON: ${{ matrix.python-version }} |
53 |
| - |
54 | 48 | steps:
|
55 | 49 | # Cancel previous runs that are not completed
|
56 | 50 | - name: Cancel Previous Runs
|
@@ -110,32 +104,11 @@ jobs:
|
110 | 104 | python setup.py sdist --formats=zip
|
111 | 105 | pip install dist/*
|
112 | 106 |
|
113 |
| - # Run the tests |
114 |
| - - name: Test with pytest |
115 |
| - shell: bash -l {0} |
116 |
| - run: make test PYTEST_EXTRA="-r P" |
117 |
| - |
118 |
| - # Upload diff images on test failure |
119 |
| - - name: Upload diff images if any test fails |
120 |
| - uses: actions/upload-artifact@v2 |
121 |
| - if: ${{ failure() }} |
122 |
| - with: |
123 |
| - name: artifact-${{ runner.os }}-${{ matrix.python-version }} |
124 |
| - path: tmp-test-dir-with-unique-name |
125 |
| - |
126 | 107 | # Build the documentation
|
127 | 108 | - name: Build the documentation
|
128 | 109 | shell: bash -l {0}
|
129 | 110 | run: make -C doc clean all
|
130 | 111 |
|
131 |
| - # Upload coverage to Codecov |
132 |
| - - name: Upload coverage to Codecov |
133 |
| - |
134 |
| - with: |
135 |
| - file: ./coverage.xml # optional |
136 |
| - env_vars: OS,PYTHON |
137 |
| - fail_ci_if_error: false |
138 |
| - |
139 | 112 | - name: Checkout the gh-pages branch
|
140 | 113 | uses: actions/checkout@28c7f3d2b5162b5ddd3dfd9a45aa55eaf396478b
|
141 | 114 | with:
|
|
0 commit comments