1
+ name : CI
2
+
3
+ on : [push, pull_request]
4
+
5
+ jobs :
6
+ ubuntu-build :
7
+ name : ${{ matrix.python-version }} on ${{ matrix.os }}
8
+ runs-on : ${{ matrix.os }}
9
+
10
+ strategy :
11
+ matrix :
12
+ python-version : [3.6, 3.7]
13
+ os : [ubuntu-latest]
14
+
15
+ steps :
16
+ - uses : actions/checkout@v1
17
+
18
+ - name : Set up Python ${{ matrix.python-version }}
19
+ uses : actions/setup-python@v1
20
+ with :
21
+ python-version : ${{ matrix.python-version }}
22
+
23
+ - name : Install dependencies
24
+ run : |
25
+ python -m pip install --upgrade pip
26
+ pip install -r requirements.txt
27
+
28
+ - name : Lint with flake8
29
+ run : |
30
+ pip install flake8
31
+ # stop the build if there are Python syntax errors or undefined names
32
+ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
33
+ # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
34
+ flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
35
+
36
+ - name : Python Style Checker
37
+ uses : andymckay/pycodestyle-action@0.1.3
38
+
39
+ - name : Test with pytest
40
+ run : |
41
+ pip install pytest pytest-cov coveralls coverage==4.5.4
42
+ pytest tests/unit --cov=tabpy --cov-append
43
+ pytest tests/integration --cov=tabpy --cov-append
44
+ coveralls
45
+ env :
46
+ COVERALLS_REPO_TOKEN : ${{ secrets.COVERALLS_REPO_TOKEN }}
47
+
48
+ - name : Markdownlint
49
+ uses : nosborn/github-action-markdown-cli@v1.1.1
50
+ with :
51
+ files : .
52
+
53
+ windows-build :
54
+ name : ${{ matrix.python-version }} on ${{ matrix.os }}
55
+ runs-on : ${{ matrix.os }}
56
+
57
+ strategy :
58
+ matrix :
59
+ python-version : [3.7]
60
+ os : [windows-latest]
61
+
62
+ steps :
63
+ - uses : actions/checkout@v1
64
+
65
+ - name : Set up Python ${{ matrix.python-version }}
66
+ uses : actions/setup-python@v1
67
+ with :
68
+ python-version : ${{ matrix.python-version }}
69
+
70
+ - name : Install dependencies
71
+ run : |
72
+ python -m pip install --upgrade pip
73
+ pip install -r requirements.txt
74
+
75
+ - name : Test with pytest
76
+ run : |
77
+ pip install pytest pytest-cov coveralls
78
+ pytest tests/unit
79
+ pytest tests/integration
80
+
81
+ mac-build :
82
+ name : ${{ matrix.python-version }} on ${{ matrix.os }}
83
+ runs-on : ${{ matrix.os }}
84
+
85
+ strategy :
86
+ matrix :
87
+ python-version : [3.7]
88
+ os : [macos-latest]
89
+
90
+ steps :
91
+ - uses : actions/checkout@v1
92
+
93
+ - name : Set up Python ${{ matrix.python-version }}
94
+ uses : actions/setup-python@v1
95
+ with :
96
+ python-version : ${{ matrix.python-version }}
97
+
98
+ - name : Install dependencies
99
+ run : |
100
+ python -m pip install --upgrade pip
101
+ pip install -r requirements.txt
102
+
103
+ - name : Test with pytest
104
+ run : |
105
+ pip install pytest pytest-cov coveralls
106
+ pytest tests/unit
107
+ pytest tests/integration
108
+
0 commit comments