File tree 4 files changed +29
-72
lines changed
4 files changed +29
-72
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 12
12
- cron : ' 0 0 * * *'
13
13
14
14
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
+
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
+
15
39
test :
16
40
name : ${{ matrix.os }} - Python ${{ matrix.python-version }}
17
41
runs-on : ${{ matrix.os }}
Original file line number Diff line number Diff line change @@ -40,10 +40,11 @@ The main advantages of this are:
40
40
41
41
## Continuous Integration
42
42
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
47
48
conda and the ` Makefile ` to run the tests and checks.
48
49
49
50
Travis also handles all of our deployments automatically:
Original file line number Diff line number Diff line change 12
12
.. image :: http://img.shields.io/travis/GenericMappingTools/pygmt/master.svg?style=flat-square&label=Linux
13
13
:alt: Travis CI build status
14
14
: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
18
15
.. image :: https://github.com/GenericMappingTools/pygmt/workflows/Tests/badge.svg
19
16
:alt: GitHub Actions build status
20
17
:target: https://github.com/GenericMappingTools/pygmt/actions
You can’t perform that action at this time.
0 commit comments