Skip to content

Commit

Permalink
Added Security Center Hosts API Support #614
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveMcGrath committed Jan 16, 2025
1 parent 2ed9a66 commit 1e9a197
Show file tree
Hide file tree
Showing 10 changed files with 540 additions and 276 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,28 @@ jobs:
run: uv run ruff check tenable --exit-zero

- name: Run unit tests
run: uv run pytest --vcr-record=none tests --cov-report=term-missing

run: uv run pytest --vcr-record=none tests --cov-report=term-missing --cov-report=xml:coverage.xml --cov=tenable
- uses: actions/upload-artifact@v4
with:
name: coverage-${{ matrix.python-version }}.xml
path: coverage.xml
retention-days: 1
overwrite: true

code-assessments:
needs: [unit-tests]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- uses: astral-sh/setup-uv@v4

- name: Run coverage
run: uv tool run coverage xml coverage.xml

- uses: actions/download-artifact@v4
with:
name: coverage-3.10.xml
path: coverage.xml

- name: Upload Coverage
uses: orgoro/[email protected]
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ Jenkinsfile
/ex_*.py
.idea
/dist
__MACOSX
1 change: 1 addition & 0 deletions docs/api/sc/hosts.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.. automodule:: tenable.sc.hosts
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,5 @@ dev-dependencies = [

[tool.pytest.ini_options]
addopts = "--cov-report term-missing --cov=tenable"
filterWarnings = [
"ignore::DeprecationWarning"
]
testpaths = ['./tests']
filterwarnings = ["ignore:::DeprecationWarning"]
Loading

0 comments on commit 1e9a197

Please sign in to comment.