-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from danielfromearth/develop
update `main`
- Loading branch information
Showing
8 changed files
with
694 additions
and
99 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
GitHub Issue: #NUM _(replace NUM with GitHub issue number)_ | ||
|
||
### Description | ||
|
||
A short description of the changes in this PR. | ||
|
||
### Local test steps | ||
|
||
_Summarize testing and verification you've done. This includes unit tests or testing with specific data_ | ||
|
||
### Overview of integration done | ||
|
||
_Explain how this change was integration tested. Provide screenshots or logs if appropriate. An example of this would be a local Harmony deployment._ | ||
|
||
## PR Acceptance Checklist | ||
* [ ] Unit tests added/updated and passing. | ||
* [ ] Integration testing | ||
* [ ] `CHANGELOG.md` updated | ||
* [ ] Documentation updated (if needed). |
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
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
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,67 @@ | ||
# This workflow will install Python dependencies, run tests, | ||
# and report test results and code coverage as artifacts. It will | ||
# be called by the workflow that run tests against new PRs and as | ||
# a first step in the workflow that publishes new Docker images. | ||
|
||
name: A reusable workflow to build and run the unit test suite | ||
|
||
on: | ||
workflow_call: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build_and_test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Retrieve repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Set up Poetry | ||
uses: abatilo/actions-poetry@v2.3.0 | ||
with: | ||
poetry-version: 1.3.2 | ||
|
||
- name: Install package | ||
run: poetry install | ||
|
||
- name: Run linting | ||
run: | | ||
poetry run ruff concatenator | ||
- name: Run tests with coverage | ||
run: | | ||
poetry run coverage run -m pytest tests/test_group_handling.py >& test_results.txt | ||
# TODO: expand tests to include full concatenation runs, i.e., don't just run test_group_handling.py | ||
|
||
- name: Generate coverage report | ||
if: ${{ always() }} | ||
run: | | ||
poetry run coverage report -m >& coverage_report.txt | ||
poetry run coverage html --dir htmlcov | ||
- name: Archive test results | ||
if: ${{ always() }} | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: test result | ||
path: test_results.txt | ||
|
||
- name: Archive code coverage report (plain text) | ||
if: ${{ always() }} | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: code coverage report (plain text) | ||
path: coverage_report.txt | ||
|
||
- name: Archive code coverage report (HTML) | ||
if: ${{ always() }} | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: code coverage report (HTML) | ||
path: htmlcov/* |
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.