Skip to content

Commit bac4792

Browse files
committed
Added Security Center Hosts API Support #614
1 parent 2ed9a66 commit bac4792

File tree

10 files changed

+539
-273
lines changed

10 files changed

+539
-273
lines changed

.github/workflows/testing.yml

+13-3
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,15 @@ jobs:
3030
run: uv run ruff check tenable --exit-zero
3131

3232
- name: Run unit tests
33-
run: uv run pytest --vcr-record=none tests --cov-report=term-missing
33+
run: uv run pytest --vcr-record=none tests --cov-report=term-missingov-report=xml:coverage.xml
3434

35+
- uses: actions/upload-artifacts@v4
36+
with:
37+
name: coverage-${{ matrix.python-version }}.xml
38+
path: coverage.xml
39+
retention-days: 1
40+
overwrite: true
41+
3542
code-assessments:
3643
runs-on: ubuntu-latest
3744
steps:
@@ -41,9 +48,12 @@ jobs:
4148
python-version: "3.10"
4249
- uses: astral-sh/setup-uv@v4
4350

44-
- name: Run coverage
45-
run: uv tool run coverage xml coverage.xml
4651

52+
- uses: actions/download-artifact@v4
53+
with:
54+
name: coverage-3.10.xml
55+
path: coverage.xml
56+
4757
- name: Upload Coverage
4858
uses: orgoro/[email protected]
4959
with:

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ Jenkinsfile
2323
/ex_*.py
2424
.idea
2525
/dist
26+
__MACOSX

docs/api/sc/hosts.rst

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.. automodule:: tenable.sc.hosts

pyproject.toml

+2-3
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,5 @@ dev-dependencies = [
135135

136136
[tool.pytest.ini_options]
137137
addopts = "--cov-report term-missing --cov=tenable"
138-
filterWarnings = [
139-
"ignore::DeprecationWarning"
140-
]
138+
testpaths = ['./tests']
139+
filterwarnings = ["ignore:::DeprecationWarning"]

0 commit comments

Comments
 (0)