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