-
Notifications
You must be signed in to change notification settings - Fork 10
Build out Rust unit tests/coverage reporting #752
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
24 commits
Select commit
Hold shift + click to select a range
5a253ed
Build out Rust unit tests/coverage reporting
forstmeier fc25fbf
Change test coverage output location
forstmeier dd97775
Address pull request #752 feedback: refactor tests and improve CI rob…
forstmeier 6fa04d3
Remove coverage file check from Rust workflow
forstmeier ae97ee0
Address pull request #752 feedback: refine error handling and test co…
forstmeier bbbdb31
Fix Flox dependency error
forstmeier d937c45
Address pull request #752 feedback: fix coverage tool mismatch
forstmeier 4b8dc25
Expand unit tests/update code tests GitHub workflows
forstmeier 5139536
Update GitHub workflow code check "detect changes" job outputs
forstmeier e1d76b0
Add push trigger for testing workflow on feature branch
forstmeier eb5eff8
Add missing checkout step to detect_changes job
forstmeier c64f4c1
Simplify workflow to always run all code checks
forstmeier b602d45
Fix YAML syntax for coveralls files parameter
forstmeier 1ebdd2e
Add bot pull request feedback
forstmeier 70cea99
Add Rust dependency caching/add disk space optimizations
forstmeier cee6506
Update Coveralls target file upload format
forstmeier ab4d0c7
Truncate all tests into DataFrame validation
forstmeier 6b661d3
testcontainers
chrisaddy c2970cf
Add bot pull request feedback and add general cleanup/fixes
forstmeier f94ca31
Address pull request #753 feedback: improve tracing init and env var …
forstmeier 448a63f
Add changes from pull request #751
forstmeier 42d8f15
Merge pull request #753 from oscmcompany/rust-tests
forstmeier 4b95032
Merge branch 'master' into rust-unit-tests-and-coverage-updates
forstmeier 9d91879
Address pull request #752 feedback: infrastructure cleanups and code …
forstmeier 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
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
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,93 @@ | ||
| --- | ||
| name: Code checks | ||
| run-name: Code checks | ||
| on: | ||
| pull_request: | ||
| jobs: | ||
| run_rust_code_checks: | ||
| name: Run Rust code checks | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| - name: Free disk space | ||
| run: | | ||
| echo "Disk space before cleanup:" | ||
| df -h | ||
| sudo rm -rf /usr/share/dotnet | ||
| sudo rm -rf /opt/ghc | ||
| sudo rm -rf /usr/local/share/boost | ||
| sudo rm -rf "$AGENT_TOOLSDIRECTORY" | ||
| echo "Disk space after cleanup:" | ||
| df -h | ||
| - name: Install Flox | ||
| uses: flox/install-flox-action@v2 | ||
| - name: Cache Rust dependencies | ||
|
forstmeier marked this conversation as resolved.
|
||
| uses: Swatinem/rust-cache@v2 | ||
| with: | ||
| workspaces: . | ||
| cache-on-failure: false | ||
| shared-key: rust-continuous-integration | ||
| save-if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} | ||
|
forstmeier marked this conversation as resolved.
|
||
| - name: Run Rust code checks | ||
| uses: flox/activate-action@v1 | ||
| with: | ||
| command: mask development rust all | ||
| - name: Upload test coverage results | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: ${{ github.job }}_test_coverage | ||
| path: .coverage_output/rust.xml | ||
| if-no-files-found: error | ||
| overwrite: true | ||
|
forstmeier marked this conversation as resolved.
|
||
| run_python_code_checks: | ||
| name: Run Python code checks | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| - name: Install Flox | ||
| uses: flox/install-flox-action@v2 | ||
| - name: Run Python code checks | ||
| uses: flox/activate-action@v1 | ||
| with: | ||
| command: mask development python all | ||
| - name: Upload test coverage results | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: ${{ github.job }}_test_coverage | ||
| path: .coverage_output/python.xml | ||
| if-no-files-found: error | ||
| overwrite: true | ||
| run_markdown_code_checks: | ||
| name: Run Markdown code checks | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| - name: Install Flox | ||
| uses: flox/install-flox-action@v2 | ||
|
forstmeier marked this conversation as resolved.
|
||
| - name: Run Markdown code checks | ||
| uses: flox/activate-action@v1 | ||
| with: | ||
| command: mask development markdown all | ||
| upload_test_coverage: | ||
| needs: | ||
|
forstmeier marked this conversation as resolved.
|
||
| - run_rust_code_checks | ||
| - run_python_code_checks | ||
|
forstmeier marked this conversation as resolved.
forstmeier marked this conversation as resolved.
forstmeier marked this conversation as resolved.
forstmeier marked this conversation as resolved.
|
||
| if: ${{ always() && (needs.run_rust_code_checks.result == 'success' || needs.run_python_code_checks.result == 'success') }} | ||
| name: Upload coverage to Coveralls | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Download test coverage results | ||
| uses: actions/download-artifact@v4 | ||
| with: | ||
| pattern: '*_test_coverage' | ||
| path: .coverage_output/ | ||
| merge-multiple: true | ||
| run-id: ${{ github.run_id }} | ||
|
forstmeier marked this conversation as resolved.
|
||
| - name: Upload coverage to Coveralls | ||
| uses: coverallsapp/github-action@v2 | ||
| with: | ||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||
| files: .coverage_output/python.xml .coverage_output/rust.xml | ||
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
Oops, something went wrong.
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.