Skip to content

Commit f62374d

Browse files
committed
add build step
1 parent da69a0a commit f62374d

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

.github/workflows/manual_release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff 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:

.github/workflows/pypi.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)