File tree Expand file tree Collapse file tree 1 file changed +21
-9
lines changed Expand file tree Collapse file tree 1 file changed +21
-9
lines changed Original file line number Diff line number Diff line change 1
- name : Build and Release
1
+ name : Test and Release
2
2
3
3
on :
4
4
pull_request :
7
7
release :
8
8
types : [published]
9
9
push :
10
+ paths :
11
+ - ' src/**'
12
+ - ' tests/**'
10
13
11
14
jobs :
12
- build :
15
+ lint :
16
+ runs-on : ubuntu-latest
17
+ steps :
18
+ - uses : actions/checkout@v1
19
+ - name : Setup Python
20
+ uses : actions/setup-python@v1
21
+ - name : Install Dependencies
22
+ run : pip install tox
23
+ - name : Flake8
24
+ run : tox -e flake8
25
+ - name : Black Check
26
+ run : tox -e black-check
27
+ - name : Pylint
28
+ run : tox -e pylint
29
+
30
+ test :
13
31
runs-on : ubuntu-latest
14
32
steps :
15
33
- uses : actions/checkout@v1
27
45
python-version : 3.7
28
46
- name : Install Dependencies
29
47
run : pip install tox
30
- - name : Flake8
31
- run : tox -e flake8
32
- - name : Black Check
33
- run : tox -e black-check
34
- - name : Pylint
35
- run : tox -e pylint
36
48
# runs unit tests for each python version
37
49
- name : Unit Tests
38
50
run : tox -- tests/unit
57
69
CODECOV_UPLOAD_TOKEN : ${{ secrets.AWS_ACCESS_KEY_ID }}
58
70
59
71
release :
60
- needs : build
72
+ needs : [test, lint]
61
73
if : github.event_name == 'release' && github.repository == 'aws/sagemaker-experiments'
62
74
runs-on : ubuntu-latest
63
75
steps :
You can’t perform that action at this time.
0 commit comments