File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -11,17 +11,25 @@ jobs:
11
11
uses : actions/setup-python@v4
12
12
with :
13
13
python-version : ' 3.9'
14
+
14
15
- name : Install Dependencies
15
16
run : |
16
17
python -m pip install --upgrade pip
17
18
pip install pylint
19
+ pip install build
18
20
pip install -r requirements_test.txt
21
+
19
22
- name : Test API
20
23
run : |
21
24
pylint prismacloud/api
22
- - name : Build
25
+
26
+ - name : Build package
27
+ run : python -m build
28
+
29
+ - name : Run tests
23
30
run : |
24
31
coverage run -m unittest discover -v -s "./tests" -p "test*.py"
32
+
25
33
- name : Publish
26
34
uses : pypa/gh-action-pypi-publish@release/v1
27
35
with :
Original file line number Diff line number Diff line change @@ -36,21 +36,30 @@ jobs:
36
36
37
37
steps :
38
38
- uses : actions/checkout@v3
39
+
39
40
- name : Set up Python
40
41
uses : actions/setup-python@v4
41
42
with :
42
43
python-version : ' 3.9'
44
+
43
45
- name : Install Dependencies
44
46
run : |
45
47
python -m pip install --upgrade pip
46
48
pip install pylint
49
+ pip install build
47
50
pip install -r requirements_test.txt
51
+
48
52
- name : Test API
49
53
run : |
50
54
pylint prismacloud/api
51
- - name : Tests with coverage
55
+
56
+ - name : Build package
57
+ run : python -m build
58
+
59
+ - name : Run tests
52
60
run : |
53
61
coverage run -m unittest discover -v -s "./tests" -p "test*.py"
62
+
54
63
- name : Publish
55
64
uses : pypa/gh-action-pypi-publish@release/v1
56
65
with :
You can’t perform that action at this time.
0 commit comments