-
Notifications
You must be signed in to change notification settings - Fork 0
The yaml update #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
fc9b3e8
Update dependencies and version in pyproject.toml; regenerate poetry.…
michaelbeale-IL 8e5179e
updated ingore file.
michaelbeale-IL a0c42fb
Enhance package management and logging features
michaelbeale-IL 9b92865
Add GitHub Actions workflow for unit testing and coverage reporting; …
michaelbeale-IL 2f93b13
Update coverage package group to include 'dev'
michaelbeale-IL fddb368
Fix return type of get_pip_package_data method from dict to list
michaelbeale-IL 9ea62e8
Fix channel handling in generatebom function by updating method to ad…
michaelbeale-IL de507d9
Refactor parse_git_requirement and add unit tests for requirement par…
michaelbeale-IL d3c5b61
Reduce coverage failure threshold from 90 to 85 in pytest configuration
michaelbeale-IL File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,63 @@ | ||
| # This workflow will install Python dependencies, run tests and lint with a single version of Python | ||
| # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | ||
|
|
||
| name: Unit Tests | ||
|
|
||
| on: | ||
| push: | ||
| branches: ["main"] | ||
| pull_request: | ||
| branches: ["main"] | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| unittest: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Python 3.13 | ||
| uses: actions/setup-python@v5.2.0 | ||
| with: | ||
| python-version: "3.13" | ||
|
|
||
| - name: Cache Python virtual environment | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: ${{ github.workspace }}/.venv | ||
| key: ${{ runner.os }}-python-${{ hashFiles('**/poetry.lock') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-python-${{ hashFiles('**/poetry.lock') }} | ||
| ${{ runner.os }}-python- | ||
|
|
||
| - name: Install Poetry | ||
| run: | | ||
| python3 -m pip install --upgrade pip | ||
| python3 -m pip install poetry | ||
|
|
||
| - name: Configure Poetry to create virtual environment in project directory | ||
| run: | | ||
| poetry config virtualenvs.in-project true | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| poetry install | ||
| poetry env info | ||
|
|
||
| - name: Run tests | ||
| run: | | ||
| source .venv/bin/activate | ||
| poetry run pytest | ||
|
|
||
| - name: Upload coverage report | ||
| if: ${{ !env.ACT }} | ||
| uses: actions/upload-artifact@v4.4.0 | ||
| with: | ||
| name: coverage-report | ||
| path: | | ||
| coverage.xml |
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -7,3 +7,8 @@ tests/fuzzer | |
| tmp | ||
| *.pyc | ||
| .coverage | ||
| coverage.xml | ||
| *.xlsx | ||
| *.xls | ||
| *.csv | ||
| *.json | ||
This file contains hidden or 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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
This file contains hidden or 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,2 @@ | ||
| [pytest] | ||
| addopts = --cov=superbom --cov-report=xml --cov-fail-under=85 |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.