Skip to content

Commit 4adf973

Browse files
committed
Delete testing part from Docs workflow and only build docs with Python 3.9
1 parent 2b1cfbd commit 4adf973

File tree

1 file changed

+4
-31
lines changed

1 file changed

+4
-31
lines changed

.github/workflows/docs.yml

+4-31
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
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
32

4-
name: Tests
3+
name: Docs
54

65
on:
76
push:
@@ -22,13 +21,13 @@ on:
2221
- cron: '0 0 * * *'
2322

2423
jobs:
25-
test:
24+
docs:
2625
name: ${{ matrix.os }} - Python ${{ matrix.python-version }}
2726
runs-on: ${{ matrix.os }}
2827
strategy:
2928
fail-fast: false
3029
matrix:
31-
python-version: [3.7, 3.8, 3.9]
30+
python-version: [3.9]
3231
os: [ubuntu-latest, macOS-latest, windows-latest]
3332
# Is it a draft Pull Request (true or false)?
3433
isDraft:
@@ -46,11 +45,6 @@ jobs:
4645
python-version: 3.8
4746
isDraft: true
4847

49-
# environmental variables used in coverage
50-
env:
51-
OS: ${{ matrix.os }}
52-
PYTHON: ${{ matrix.python-version }}
53-
5448
steps:
5549
# Cancel previous runs that are not completed
5650
- name: Cancel Previous Runs
@@ -110,32 +104,11 @@ jobs:
110104
python setup.py sdist --formats=zip
111105
pip install dist/*
112106
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-
126107
# Build the documentation
127108
- name: Build the documentation
128109
shell: bash -l {0}
129110
run: make -C doc clean all
130111

131-
# Upload coverage to Codecov
132-
- name: Upload coverage to Codecov
133-
uses: codecov/[email protected]
134-
with:
135-
file: ./coverage.xml # optional
136-
env_vars: OS,PYTHON
137-
fail_ci_if_error: false
138-
139112
- name: Checkout the gh-pages branch
140113
uses: actions/checkout@28c7f3d2b5162b5ddd3dfd9a45aa55eaf396478b
141114
with:

0 commit comments

Comments
 (0)