-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Eliminate Azure Pipelines CI jobs, use GitHub Actions instead (#513)
- Add steps "building documentation" and "uploading coverage to codecov" in GitHub Actions - Eliminate Azure Pipelines CI jobs, except the one doing style checks.
- Loading branch information
Showing
2 changed files
with
19 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a single version of Python | ||
# This workflow installs PyGMT dependencies, build documentation and run tests | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
|
||
name: Tests | ||
|
@@ -20,6 +20,10 @@ jobs: | |
matrix: | ||
python-version: [3.6, 3.7, 3.8] | ||
os: [ubuntu-latest, macOS-latest, windows-latest] | ||
# environmental variables used in coverage | ||
env: | ||
OS: ${{ matrix.os }} | ||
PYTHON: ${{ matrix.python-version }} | ||
|
||
steps: | ||
# Checkout current git repository | ||
|
@@ -45,6 +49,7 @@ jobs: | |
cat << EOF >> $requirements_file | ||
gmt=6.0.0 | ||
make | ||
codecov | ||
EOF | ||
conda install --yes --file $requirements_file | ||
|
@@ -96,3 +101,16 @@ jobs: | |
- name: Test with pytest | ||
shell: bash -l {0} | ||
run: make test PYTEST_EXTRA="-r P" | ||
|
||
# Build the documentation | ||
- name: Build the documentation | ||
shell: bash -l {0} | ||
run: make -C doc clean all | ||
|
||
# Upload coverage to Codecov | ||
- name: Upload coverage to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
file: ./coverage.xml # optional | ||
env_vars: OS,PYTHON | ||
fail_ci_if_error: true |