-
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.
* Added sphinx-design package install to docs workflow * Changed scardb docs and added coverage * Updated workflows * Updated workflows * Updated workflows
- Loading branch information
1 parent
a58c731
commit ccbf8bb
Showing
16 changed files
with
280 additions
and
248 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 |
---|---|---|
@@ -1,44 +1,39 @@ | ||
name: Test | ||
name: Testing | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- "**" | ||
branches: [main] | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
test-python: | ||
run-with-coverage: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python 3.12 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.12 | ||
python-version: '3.12' | ||
|
||
- name: Install Poetry | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install poetry | ||
curl -sSL https://install.python-poetry.org | python3 - | ||
poetry config virtualenvs.in-project true | ||
- name: Install dependencies | ||
run: poetry install | ||
run: | | ||
poetry install | ||
- name: Run tests | ||
- name: Run tests with coverage | ||
run: | | ||
poetry run pytest --junitxml=junit.xml || { | ||
if [ $? -eq 5 ]; then | ||
echo 'Did not find any tests to run.'; | ||
else | ||
exit 1; | ||
fi | ||
} | ||
- name: Store test results | ||
if: success() || failure() | ||
poetry run pytest --cov=ctdfjorder --cov-report=html | ||
- name: Upload coverage report as artifact | ||
if: success() # This step will only run if previous steps succeeded | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: junit-results | ||
path: junit.xml | ||
name: coverage-report | ||
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
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
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,44 @@ | ||
{% if render_title %} | ||
{% if versiondata.name %} | ||
{{ versiondata.name }} {{ versiondata.version }} ({{ versiondata.date }}) | ||
{{ top_underline * ((versiondata.name + versiondata.version + versiondata.date)|length + 4)}} | ||
{% else %} | ||
{{ versiondata.version }} ({{ versiondata.date }}) | ||
{{ top_underline * ((versiondata.version + versiondata.date)|length + 3)}} | ||
{% endif %} | ||
{% endif %} | ||
{% for section, _ in sections.items() %} | ||
{% set underline = underlines[0] %}{% if section %}{{section}} | ||
{{ underline * section|length }}{% set underline = underlines[1] %} | ||
|
||
{% endif %} | ||
|
||
{% if sections[section] %} | ||
{% for category, val in definitions.items() if category in sections[section]%} | ||
{{ definitions[category]['name'] }} | ||
{{ underline * definitions[category]['name']|length }} | ||
|
||
{% if definitions[category]['showcontent'] %} | ||
{% for text, values in sections[section][category].items() %} | ||
- {{ text }} | ||
{{ values|join(',\n ') }} | ||
{% endfor %} | ||
|
||
{% else %} | ||
- {{ sections[section][category]['']|join(', ') }} | ||
|
||
{% endif %} | ||
{% if sections[section][category]|length == 0 %} | ||
No significant changes. | ||
|
||
{% else %} | ||
{% endif %} | ||
|
||
{% endfor %} | ||
{% else %} | ||
No significant changes. | ||
|
||
|
||
{% endif %} | ||
{% endfor %} | ||
---- |
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 |
---|---|---|
@@ -1,26 +1,17 @@ | ||
********* | ||
Changelog | ||
********* | ||
************* | ||
**Changelog** | ||
************* | ||
|
||
.. towncrier release notes start | ||
CTDFjorder 0.6.2 (2024-08-08) | ||
CTDFjorder 0.7.0 (2024-08-08) | ||
============================= | ||
|
||
Backward incompatible changes | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
- Changed add_bf_squared to add_brunt_vaisala_squared (#9) | ||
|
||
|
||
Miscellaneous | ||
^^^^^^^^^^^^^ | ||
|
||
- Updated docs tutorial for R users (#9) | ||
|
||
- Added changelogs :) | ||
|
||
Features | ||
^^^^^^^^ | ||
|
||
- Added new methods for calculating derived variables in the CTD class (#9) | ||
|
||
---- | ||
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 |
---|---|---|
|
@@ -78,4 +78,5 @@ References | |
Getting Started | ||
researchers | ||
developers | ||
API | ||
API | ||
changelog |
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.