File tree 1 file changed +51
-0
lines changed
1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This workflow will install Python dependencies, run tests and lint with a single version of Python
2
+
3
+ name : Python Checks
4
+
5
+ on :
6
+ push :
7
+ branches :
8
+ - master
9
+ pull_request :
10
+
11
+ jobs :
12
+ check :
13
+ runs-on : ubuntu-latest
14
+ env :
15
+ core : ./core
16
+ action-server : ./action-server
17
+
18
+ steps :
19
+ - uses : actions/checkout@v2
20
+ - name : Set up Python 3.6.8
21
+ uses : actions/setup-python@v2
22
+ with :
23
+ python-version : 3.6.8
24
+ - name : Installing poetry
25
+ run : |
26
+ export $( \
27
+ PYTHONFAULTHANDLER=TRUE \
28
+ PYTHONUNBUFFERED=TRUE \
29
+ PIP_DISABLE_PIP_VERSION_CHECK=on \
30
+ PIP_NO_CACHE_DIR=off \
31
+ )
32
+ pip install --upgrade pip \
33
+ && pip install "poetry==1.0.5"
34
+ - name : Installing core dependencies
35
+ run : make install
36
+ working-directory : ${{env.core}}
37
+ - name : Linting core
38
+ run : make lint
39
+ working-directory : ${{env.core}}
40
+ - name : Unit testing core
41
+ run : make test
42
+ working-directory : ${{env.core}}
43
+ - name : Installing action-server dependencies
44
+ run : make install
45
+ working-directory : ${{env.action-server}}
46
+ - name : Linting action-server
47
+ run : make lint
48
+ working-directory : ${{env.action-server}}
49
+ - name : Unit testing action-server
50
+ run : make test
51
+ working-directory : ${{env.action-server}}
You can’t perform that action at this time.
0 commit comments