Skip to content

Commit da69a0a

Browse files
authored
Merge pull request #184 from PaloAltoNetworks/fix/run_tests_in_pipeline
update the version and change the tests in pipeline to coverage
2 parents 390e57e + 645bd6d commit da69a0a

File tree

6 files changed

+9
-15
lines changed

6 files changed

+9
-15
lines changed

.coverage

52 KB
Binary file not shown.

.github/workflows/manual_release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,14 @@ jobs:
1414
- name: Install Dependencies
1515
run: |
1616
python -m pip install --upgrade pip
17-
pip install build
1817
pip install pylint
19-
pip install -r requirements.txt
18+
pip install -r requirements_test.txt
2019
- name: Test API
2120
run: |
2221
pylint prismacloud/api
2322
- name: Build
2423
run: |
25-
python -m build
24+
coverage run -m unittest discover -v -s "./tests" -p "test*.py"
2625
- name: Publish
2726
uses: pypa/gh-action-pypi-publish@release/v1
2827
with:

.github/workflows/pylint.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,12 @@ jobs:
2727
run: |
2828
python -m pip install --upgrade pip
2929
pip install pylint
30-
pip install -r requirements.txt
31-
pip install build
30+
pip install -r requirements_test.txt
3231
3332
- name: Test API
3433
run: |
3534
pylint prismacloud/api
3635
3736
- name: Test Scripts
3837
run: |
39-
python -m build
40-
# pip install dist/prismacloud_api-*
41-
pip install dist/prismacloud_api-*.whl # Only install the wheel file
42-
pip install -r scripts/requirements.txt
43-
pylint scripts/*.py
38+
coverage run -m unittest discover -v -s "./tests" -p "test*.py"

.github/workflows/pypi.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,14 @@ jobs:
4343
- name: Install Dependencies
4444
run: |
4545
python -m pip install --upgrade pip
46-
pip install build
4746
pip install pylint
48-
pip install -r requirements.txt
47+
pip install -r requirements_test.txt
4948
- name: Test API
5049
run: |
5150
pylint prismacloud/api
52-
- name: Build
51+
- name: Tests with coverage
5352
run: |
54-
python -m build
53+
coverage run -m unittest discover -v -s "./tests" -p "test*.py"
5554
- name: Publish
5655
uses: pypa/gh-action-pypi-publish@release/v1
5756
with:

prismacloud/api/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version = "5.2.24"
1+
version = "5.3.0"

requirements_test.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
coverage==7.6.10
22
responses==0.25.3
3+
update_checker

0 commit comments

Comments
 (0)