-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Security Center Hosts API Support #614
- Loading branch information
1 parent
2ed9a66
commit 38243c4
Showing
10 changed files
with
540 additions
and
275 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,20 +30,29 @@ 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-missingov-report=xml:coverage.xml | ||
|
||
- 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: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,3 +23,4 @@ Jenkinsfile | |
/ex_*.py | ||
.idea | ||
/dist | ||
__MACOSX |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.. automodule:: tenable.sc.hosts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.