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:
1111 uses : actions/setup-python@v4
1212 with :
1313 python-version : ' 3.9'
14+
1415 - name : Install Dependencies
1516 run : |
1617 python -m pip install --upgrade pip
1718 pip install pylint
19+ pip install build
1820 pip install -r requirements_test.txt
21+
1922 - name : Test API
2023 run : |
2124 pylint prismacloud/api
22- - name : Build
25+
26+ - name : Build package
27+ run : python -m build
28+
29+ - name : Run tests
2330 run : |
2431 coverage run -m unittest discover -v -s "./tests" -p "test*.py"
32+
2533 - name : Publish
2634 uses : pypa/gh-action-pypi-publish@release/v1
2735 with :
Original file line number Diff line number Diff line change @@ -36,21 +36,30 @@ jobs:
3636
3737 steps :
3838 - uses : actions/checkout@v3
39+
3940 - name : Set up Python
4041 uses : actions/setup-python@v4
4142 with :
4243 python-version : ' 3.9'
44+
4345 - name : Install Dependencies
4446 run : |
4547 python -m pip install --upgrade pip
4648 pip install pylint
49+ pip install build
4750 pip install -r requirements_test.txt
51+
4852 - name : Test API
4953 run : |
5054 pylint prismacloud/api
51- - name : Tests with coverage
55+
56+ - name : Build package
57+ run : python -m build
58+
59+ - name : Run tests
5260 run : |
5361 coverage run -m unittest discover -v -s "./tests" -p "test*.py"
62+
5463 - name : Publish
5564 uses : pypa/gh-action-pypi-publish@release/v1
5665 with :
You can’t perform that action at this time.
0 commit comments