Skip to content

Commit

Permalink
Run style checks using GitHub Actions instead of Azure Pipelines (#519)
Browse files Browse the repository at this point in the history
* Run style checks using GitHub Actions
* Remove Azure Pipelines
* Update Continuous Integration maintenance note to include GH Actions

Co-authored-by: Wei Ji <[email protected]>
  • Loading branch information
seisman and weiji14 authored Jul 12, 2020
1 parent b3aa16d commit 216f5d2
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 72 deletions.
65 changes: 0 additions & 65 deletions .azure-pipelines.yml

This file was deleted.

24 changes: 24 additions & 0 deletions .github/workflows/ci_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,30 @@ on:
- cron: '0 0 * * *'

jobs:
style_check:
name: Style Checks
runs-on: ubuntu-latest

steps:
# Checkout current git repository
- name: Checkout
uses: actions/[email protected]

# Setup Miniconda
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.7

- name: Install packages
run: pip install black flake8 pylint

- name: Formatting check (black and flake8)
run: make check

- name: Linting (pylint)
run: make lint

test:
name: ${{ matrix.os }} - Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
Expand Down
9 changes: 5 additions & 4 deletions MAINTENANCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ The main advantages of this are:

## Continuous Integration

We use TravisCI continuous integration (CI) services to build and test the
project on Linux, and Mac (Windows is still a work in progress).
The configuration file for this service is `.travis.yml`.
It relies on the `requirements.txt` file to install the required dependencies using
We use Github Actions and TravisCI continuous integration (CI) services to
build and test the project on Linux, macOS and Windows.
The configuration file for these services are in
`.github/workflows/ci_tests.yaml` and `.travis.yml`.
They rely on the `requirements.txt` file to install required dependencies using
conda and the `Makefile` to run the tests and checks.

Travis also handles all of our deployments automatically:
Expand Down
3 changes: 0 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ PyGMT
.. image:: http://img.shields.io/travis/GenericMappingTools/pygmt/master.svg?style=flat-square&label=Linux
:alt: Travis CI build status
:target: https://travis-ci.org/GenericMappingTools/pygmt
.. image:: https://img.shields.io/azure-devops/build/GenericMappingTools/7682ad4e-76bb-4775-849e-7c4f8dce4e1a/3/master.svg?label=Mac|Windows&style=flat-square
:alt: Azure Pipelines build status
:target: https://dev.azure.com/GenericMappingTools/PyGMT/_build
.. image:: https://github.com/GenericMappingTools/pygmt/workflows/Tests/badge.svg
:alt: GitHub Actions build status
:target: https://github.com/GenericMappingTools/pygmt/actions
Expand Down

0 comments on commit 216f5d2

Please sign in to comment.