File tree Expand file tree Collapse file tree 4 files changed +29
-72
lines changed
Expand file tree Collapse file tree 4 files changed +29
-72
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1212 - cron : ' 0 0 * * *'
1313
1414jobs :
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/checkout@v2.3.1
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 }}
Original file line number Diff line number Diff 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
4748conda and the ` Makefile ` to run the tests and checks.
4849
4950Travis also handles all of our deployments automatically:
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments