-
Notifications
You must be signed in to change notification settings - Fork 33
fix(CI): Issue 116 clean up dataviewer tests #184
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
31 commits
Select commit
Hold shift + click to select a range
08dafb9
Issue 116 clean up dataviewer tests
35cc81d
Adding codecov and fixing failing depend
068728c
fix(build): resolve CI failures for release 0.5.0 PR (#174)
WilliamBerryiii 165d7d5
feat(dataviewer): enhance HDF5 video handling and nested dataset supp…
agreaves-ms c05ab17
fixing workflow
89a796d
fixing test assertion
4f7f8c0
Adding ffmeg depenedency
51c4be5
Moving pytestcov to pyproject.toml
d9b2567
Adding continue on error
2d1c24e
feat(repo): migrate to domain-driven architecture (#270)
agreaves-ms f7e9752
Issue 116 clean up dataviewer tests
32ee322
Adding codecov and fixing failing depend
d9ba5ef
fix(build): resolve CI failures for release 0.5.0 PR (#174)
WilliamBerryiii 7556d1d
feat(dataviewer): enhance HDF5 video handling and nested dataset supp…
agreaves-ms 89bd264
Resolved conflict
27fb93b
Adding missing commit
0108cd5
Fix merge conflicts in general-technical.txt
akhanattentive 720e932
Remove empty line from general-technical.txt
akhanattentive 5ae4dff
chore: remove stray files from rebase
cfe9d65
Adding missed conflict
e71cbd4
fixing conflict
5bc9a10
Updating refactored tests
8df25fa
Adding fe test changes
0bbe4e9
adding dependency
e7643e0
Adding fixed test
fbc6396
PR feedback
3eb719d
Merge branch 'main' into ak/issue-116
akhanattentive 1e9dbe0
Remove Harden runner step from pytest workflow
akhanattentive e093b4b
Merge branch 'main' into ak/issue-116
akhanattentive e78a558
Merge branch 'main' into ak/issue-116
WilliamBerryiii 751a6ef
fix(build): align dataviewer CI workflows with repo conventions
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
Some comments aren't visible on the classic Files Changed page.
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,65 @@ | ||
| name: Dataviewer Backend Pytest | ||
|
|
||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| code-coverage: | ||
| description: 'Enable Codecov coverage upload' | ||
| required: false | ||
| default: false | ||
| type: boolean | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| pytest-dataviewer: | ||
| name: Pytest Dataviewer Backend | ||
| runs-on: ubuntu-latest | ||
| defaults: | ||
| run: | ||
| working-directory: data-management/viewer/backend | ||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - name: Setup Python | ||
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | ||
| with: | ||
| python-version: '3.11' | ||
|
|
||
| - name: Setup uv | ||
| uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0 | ||
|
|
||
| - name: Install system dependencies | ||
| run: sudo apt-get update && sudo apt-get install -y --no-install-recommends ffmpeg | ||
|
|
||
| - name: Install dependencies | ||
| run: uv sync --extra dev --extra analysis --extra hdf5 --extra export --extra auth | ||
|
|
||
| - name: Run pytest with coverage | ||
| run: uv run pytest -v --cov=src --cov-report=xml --cov-report=term-missing | ||
|
|
||
| - name: Upload coverage.xml artifact | ||
| if: ${{ inputs.code-coverage && always() }} | ||
| uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 | ||
| with: | ||
| name: pytest-dataviewer-coverage-xml | ||
| path: data-management/viewer/backend/coverage.xml | ||
| retention-days: 30 | ||
|
|
||
| - name: Upload coverage to Codecov | ||
| if: ${{ inputs.code-coverage && always() }} | ||
| uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2 | ||
| with: | ||
| files: coverage.xml | ||
| use_oidc: true | ||
| fail_ci_if_error: false | ||
| verbose: true | ||
| flags: pytest-dataviewer | ||
| name: pytest-dataviewer-coverage |
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
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.