Skip to content

Commit 216f5d2

Browse files
seismanweiji14
andauthored
Run style checks using GitHub Actions instead of Azure Pipelines (#519)
* 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]>
1 parent b3aa16d commit 216f5d2

File tree

4 files changed

+29
-72
lines changed

4 files changed

+29
-72
lines changed

.azure-pipelines.yml

-65
This file was deleted.

.github/workflows/ci_tests.yaml

+24
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,30 @@ on:
1212
- cron: '0 0 * * *'
1313

1414
jobs:
15+
style_check:
16+
name: Style Checks
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
# Checkout current git repository
21+
- name: Checkout
22+
uses: actions/[email protected]
23+
24+
# Setup Miniconda
25+
- name: Set up Python
26+
uses: actions/setup-python@v2
27+
with:
28+
python-version: 3.7
29+
30+
- name: Install packages
31+
run: pip install black flake8 pylint
32+
33+
- name: Formatting check (black and flake8)
34+
run: make check
35+
36+
- name: Linting (pylint)
37+
run: make lint
38+
1539
test:
1640
name: ${{ matrix.os }} - Python ${{ matrix.python-version }}
1741
runs-on: ${{ matrix.os }}

MAINTENANCE.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,11 @@ The main advantages of this are:
4040

4141
## Continuous Integration
4242

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

4950
Travis also handles all of our deployments automatically:

README.rst

-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ PyGMT
1212
.. image:: http://img.shields.io/travis/GenericMappingTools/pygmt/master.svg?style=flat-square&label=Linux
1313
:alt: Travis CI build status
1414
:target: https://travis-ci.org/GenericMappingTools/pygmt
15-
.. image:: https://img.shields.io/azure-devops/build/GenericMappingTools/7682ad4e-76bb-4775-849e-7c4f8dce4e1a/3/master.svg?label=Mac|Windows&style=flat-square
16-
:alt: Azure Pipelines build status
17-
:target: https://dev.azure.com/GenericMappingTools/PyGMT/_build
1815
.. image:: https://github.com/GenericMappingTools/pygmt/workflows/Tests/badge.svg
1916
:alt: GitHub Actions build status
2017
:target: https://github.com/GenericMappingTools/pygmt/actions

0 commit comments

Comments
 (0)