Skip to content

Commit

Permalink
Merge branch 'master' into 920-feature-standardize-dependency-install…
Browse files Browse the repository at this point in the history
…ation-for-github-actions
  • Loading branch information
scap3yvt authored Sep 24, 2024
2 parents 7cfb2ac + 2953a5e commit 50abfd0
Show file tree
Hide file tree
Showing 18 changed files with 33 additions and 25 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,11 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: unittests
flags: unittests

- name: Upload coverage to Codacy
if: steps.changed-files-specific.outputs.only_modified == 'false' # Run on any non-docs change
uses: codacy/[email protected]
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: ./coverage.xml
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
<a href="https://github.com/mlcommons/GaNDLF/actions/workflows/codeql-analysis.yml" alt="Code Analysis"><img src="https://github.com/mlcommons/GaNDLF/workflows/CodeQL/badge.svg" /></a>
<a href="https://hub.docker.com/repository/docker/cbica/gandlf" alt="Docker CI"><img src="https://github.com/mlcommons/GaNDLF/actions/workflows/docker-image.yml/badge.svg" /></a>
<a href="https://codecov.io/gh/mlcommons/GaNDLF" alt="Code Coverage"><img src="https://codecov.io/gh/mlcommons/GaNDLF/branch/master/graph/badge.svg?token=4I54XEI3WE" /></a>
<a href="https://app.codacy.com/gh/mlcommons/GaNDLF?utm_source=github.com&utm_medium=referral&utm_content=mlcommons/GaNDLF&utm_campaign=Badge_Grade_Settings"><img alt="Codacy" src="https://api.codacy.com/project/badge/Grade/b2cf27ddce1b4907abb47a82931dcbca"></a><br>
<a href="https://app.codacy.com/gh/mlcommons/GaNDLF/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage" alt="Codacy Code Coverage"><img src="https://app.codacy.com/project/badge/Coverage/51a47165e3644ec6acdfbac345843b7c" /></a><br>
<a href="https://app.codacy.com/gh/mlcommons/GaNDLF/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade"><img alt="Codacy" src="https://app.codacy.com/project/badge/Grade/51a47165e3644ec6acdfbac345843b7c"></a>
<a href="https://pypi.org/project/GANDLF/" alt="Install"><img src="https://img.shields.io/pypi/v/gandlf?color=blue" /></a>
<a href="https://anaconda.org/conda-forge/gandlf" alt="Install"><img src="https://img.shields.io/conda/vn/conda-forge/gandlf?color=green" /></a>
<a href="https://github.com/mlcommons/GaNDLF/discussions" alt="Issues"><img src="https://img.shields.io/badge/Support-Discussion-blue?color=red" /></a>
Expand Down
4 changes: 2 additions & 2 deletions docs/migration_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ The [0.0.20 release](https://github.com/mlcommons/GaNDLF/releases/tag/0.0.20) wa
- The main change is the use of the [Version package](https://github.com/keleshev/version) for systematic semantic versioning [[ref](https://github.com/mlcommons/GaNDLF/pull/841)].
- No change is needed if you are using a [stable version](https://docs.mlcommons.org/GaNDLF/setup/#install-from-package-managers).
- If you have installed GaNDLF [from source](https://docs.mlcommons.org/GaNDLF/setup/#install-from-sources) or using a [nightly build](https://docs.mlcommons.org/GaNDLF/setup/#install-from-package-managers), you will need to ensure that the `maximum` key under `version` in the configuration file contains the correct version number:
- Either **including** the `-dev` identifier of the current version (e.g., if the current version is `0.1.0-dev`, then the `maximum` key should be `0.1.0-dev`).
- Or **excluding** the `-dev` identifier of the current version, but increasing the version number by one on any level (e.g., if the current version is `0.1.0-dev`, then the `maximum` key should be `0.1.1`).
- Either **including** the `-dev` identifier of the current version (e.g., if the current version is `0.X.Y-dev`, then the `maximum` key should be `0.X.Y-dev`).
- Or **excluding** the `-dev` identifier of the current version, but increasing the version number by one on any level (e.g., if the current version is `0.X.Y-dev`, then the `maximum` key should be `0.X.Y`).

### Use in HPC Environments

Expand Down
4 changes: 2 additions & 2 deletions samples/config_all_options.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# affix version
version:
{
minimum: 0.1.0-dev,
maximum: 0.1.0-dev # this should NOT be made a variable, but should be tested after every tag is created
minimum: 0.1.1-dev,
maximum: 0.1.1-dev # this should NOT be made a variable, but should be tested after every tag is created
}
## Choose the model parameters here
model:
Expand Down
4 changes: 2 additions & 2 deletions samples/config_classification.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# affix version
version:
{
minimum: 0.1.0-dev,
maximum: 0.1.0-dev # this should NOT be made a variable, but should be tested after every tag is created
minimum: 0.1.1-dev,
maximum: 0.1.1-dev # this should NOT be made a variable, but should be tested after every tag is created
}
# Choose the model parameters here
model:
Expand Down
2 changes: 1 addition & 1 deletion samples/config_getting_started_classification_histo2d.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,6 @@ scheduler:
track_memory_usage: false
verbose: false
version:
maximum: 0.1.0-dev
maximum: 0.1.1-dev
minimum: 0.0.14
weighted_loss: true
2 changes: 1 addition & 1 deletion samples/config_getting_started_classification_rad3d.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,6 @@ scheduler:
track_memory_usage: false
verbose: false
version:
maximum: 0.1.0-dev
maximum: 0.1.1-dev
minimum: 0.0.14
weighted_loss: true
2 changes: 1 addition & 1 deletion samples/config_getting_started_regression_histo2d.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ scheduler:
track_memory_usage: false
verbose: false
version:
maximum: 0.1.0-dev
maximum: 0.1.1-dev
minimum: 0.0.14
weighted_loss: true
2 changes: 1 addition & 1 deletion samples/config_getting_started_regression_rad3d.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@ scheduler:
track_memory_usage: false
verbose: false
version:
maximum: 0.1.0-dev
maximum: 0.1.1-dev
minimum: 0.0.14
weighted_loss: false
2 changes: 1 addition & 1 deletion samples/config_getting_started_segmentation_histo2d.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ scheduler:
track_memory_usage: false
verbose: true
version:
maximum: 0.1.0-dev
maximum: 0.1.1-dev
minimum: 0.0.14
weighted_loss: true
4 changes: 2 additions & 2 deletions samples/config_getting_started_segmentation_rad3d.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,6 @@ scheduler:
track_memory_usage: false
verbose: true
version:
maximum: 0.1.0-dev
minimum: 0.1.0-dev
maximum: 0.1.1-dev
minimum: 0.1.1-dev
weighted_loss: true
4 changes: 2 additions & 2 deletions samples/config_regression.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# affix version
version:
{
minimum: 0.1.0-dev,
maximum: 0.1.0-dev # this should NOT be made a variable, but should be tested after every tag is created
minimum: 0.1.1-dev,
maximum: 0.1.1-dev # this should NOT be made a variable, but should be tested after every tag is created
}
# Choose the model parameters here
model:
Expand Down
4 changes: 2 additions & 2 deletions samples/config_segmentation_brats.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# affix version
version:
{
minimum: 0.1.0-dev,
maximum: 0.1.0-dev # this should NOT be made a variable, but should be tested after every tag is created
minimum: 0.1.1-dev,
maximum: 0.1.1-dev # this should NOT be made a variable, but should be tested after every tag is created
}
# Choose the model parameters here
model:
Expand Down
4 changes: 2 additions & 2 deletions samples/config_segmentation_histology.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# affix version
version:
{
minimum: 0.1.0-dev,
maximum: 0.1.0-dev # this should NOT be made a variable, but should be tested after every tag is created
minimum: 0.1.1-dev,
maximum: 0.1.1-dev # this should NOT be made a variable, but should be tested after every tag is created
}
# Choose the model parameters here
model:
Expand Down
2 changes: 1 addition & 1 deletion testing/config_classification.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ save_output: false
scaling_factor: 1
scheduler: triangle
version:
maximum: 0.1.0-dev
maximum: 0.1.1-dev
minimum: 0.0.14
weighted_loss: True

2 changes: 1 addition & 1 deletion testing/config_regression.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ save_output: false
scaling_factor: 1
scheduler: triangle
version:
maximum: 0.1.0-dev
maximum: 0.1.1-dev
minimum: 0.0.14
weighted_loss: false

2 changes: 1 addition & 1 deletion testing/config_segmentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
version:
{
minimum: 0.0.14,
maximum: 0.1.0-dev
maximum: 0.1.1-dev
}
model:
{
Expand Down
2 changes: 1 addition & 1 deletion tutorials/classification_medmnist_notebook/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
version:
{
minimum: 0.0.14,
maximum: 0.1.0-dev # this should NOT be made a variable, but should be tested after every tag is created
maximum: 0.1.1-dev # this should NOT be made a variable, but should be tested after every tag is created
}
# Choose the model parameters here
model:
Expand Down

0 comments on commit 50abfd0

Please sign in to comment.