Skip to content

Commit c04e6d4

Browse files
committed
Run style checks in GitHub Actions
Also remove Azure Pipelines.
1 parent b3aa16d commit c04e6d4

File tree

3 files changed

+39
-68
lines changed

3 files changed

+39
-68
lines changed

.azure-pipelines.yml

-65
This file was deleted.

.github/workflows/style_check.yaml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Style Checks
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
8+
jobs:
9+
style_check:
10+
name: Style Checks
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
# Checkout current git repository
15+
- name: Checkout
16+
uses: actions/[email protected]
17+
18+
# Setup Miniconda
19+
- name: Setup Miniconda
20+
uses: goanpeca/[email protected]
21+
with:
22+
python-version: 3.7
23+
channels: conda-forge
24+
25+
- name: Install packages
26+
shell: bash -l {0}
27+
run: conda install --yes black flake8 pylint
28+
29+
- name: List installed packages
30+
shell: bash -l {0}
31+
run: conda list
32+
33+
- name: Formatting check (black and flake8)
34+
shell: bash -l {0}
35+
run: make check
36+
37+
- name: Linting (pylint)
38+
shell: bash -l {0}
39+
run: make lint

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)