-
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 #15 from BMCV/develop
Update to 0.3.0
- Loading branch information
Showing
1,707 changed files
with
119,108 additions
and
48 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,77 @@ | ||
name: Regression tests | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: ['develop'] | ||
paths: | ||
- .github/workflows/regressiontests.yml | ||
- superdsm/** | ||
- examples/** | ||
- superdsm.yml | ||
- tests/regression | ||
- requirements.txt | ||
|
||
jobs: | ||
|
||
regression_tests: | ||
name: "Test: ${{ matrix.taskdir }}" | ||
timeout-minutes: 1440 | ||
runs-on: gpuagrohr-01 | ||
container: | ||
image: ubuntu:22.04 | ||
defaults: | ||
run: | ||
shell: bash -el {0} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
taskdir: | ||
- U2OS | ||
- NIH3T3 | ||
- GOWT1-1 | ||
- GOWT1-2 | ||
|
||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Clear cache # otherwise corrupted packages can be reported sometimes | ||
run: rm -rf /github/home/conda_pkgs_dir | ||
|
||
- name: Setup Miniconda | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
miniconda-version: 'latest' | ||
channels: conda-forge, bioconda, defaults | ||
auto-update-conda: true | ||
auto-activate-base: false | ||
activate-environment: superdsm | ||
environment-file: superdsm.yml | ||
|
||
- name: Download image data | ||
run: | | ||
cd examples | ||
python load_data.py | ||
- name: Run SuperDSM | ||
run: | | ||
python -m "superdsm.batch" examples --task-dir "${{ matrix.taskdir }}" | ||
python -m "superdsm.batch" examples --task-dir "${{ matrix.taskdir }}" --run | ||
env: | ||
SUPERDSM_INTERMEDIATE_OUTPUT: false | ||
SUPERDSM_NUM_CPUS: 20 | ||
|
||
- name: Validate results | ||
id: validation | ||
run: | | ||
mkdir "actual_csv" | ||
sh "tests/regression/validate-${{ matrix.taskdir }}.sh" "actual_csv" | ||
- name: Upload artifact | ||
if: failure() && steps.validation.outcome != 'success' | ||
uses: actions/upload-artifact@v3 ## v4 requires GLIBC_2.28 which is not found on host | ||
with: | ||
name: Results ${{ matrix.taskdir }} | ||
path: actual_csv/${{ matrix.taskdir }} |
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,45 @@ | ||
name: Test suite | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: ['develop'] | ||
paths: | ||
- .github/workflows/testsuite.yml | ||
- superdsm/** | ||
- examples/** | ||
- superdsm.yml | ||
- tests/** | ||
- requirements.txt | ||
|
||
jobs: | ||
|
||
run_testsuite: | ||
name: Test suite | ||
runs-on: gpuagrohr-01 | ||
container: | ||
image: ubuntu:22.04 | ||
defaults: | ||
run: | ||
shell: bash -el {0} | ||
|
||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Clear cache # otherwise corrupted packages can be reported sometimes | ||
run: rm -rf /github/home/conda_pkgs_dir | ||
|
||
- name: Setup Miniconda | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
miniconda-version: 'latest' | ||
channels: conda-forge, bioconda, defaults | ||
auto-update-conda: true | ||
auto-activate-base: false | ||
activate-environment: superdsm | ||
environment-file: superdsm.yml | ||
|
||
- name: Run SuperDSM | ||
run: python -m "unittest" |
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,73 @@ | ||
name: Validate pull request | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
|
||
validate_branches: | ||
name: Validate branches | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- name: Validate branches | ||
if: github.base_ref == 'master' && github.head_ref != 'develop' | ||
run: | | ||
echo "Contributions should be made against the develop branch, see README.rst." | ||
exit 1 | ||
validate_conditional_checks: | ||
name: Validate conditional checks | ||
timeout-minutes: 1440 | ||
runs-on: gpuagrohr-02 | ||
container: | ||
image: ubuntu:22.04 | ||
|
||
steps: | ||
|
||
- name: Install dependencies | ||
run: | | ||
apt-get update | ||
apt-get install -y ca-certificates | ||
- uses: blend/[email protected] | ||
with: | ||
interval: 20s | ||
timeout: 1440m | ||
checks-yaml: | | ||
- job: 'Test: U2OS' | ||
paths: | ||
- .github/workflows/regressiontests.yml | ||
- superdsm/** | ||
- examples/** | ||
- superdsm.yml | ||
- tests/regression | ||
- job: 'Test: NIH3T3' | ||
paths: | ||
- .github/workflows/regressiontests.yml | ||
- superdsm/** | ||
- examples/** | ||
- superdsm.yml | ||
- tests/regression | ||
- job: 'Test: GOWT1-1' | ||
paths: | ||
- .github/workflows/regressiontests.yml | ||
- superdsm/** | ||
- examples/** | ||
- superdsm.yml | ||
- tests/regression | ||
- job: 'Test: GOWT1-2' | ||
paths: | ||
- .github/workflows/regressiontests.yml | ||
- superdsm/** | ||
- examples/** | ||
- superdsm.yml | ||
- tests/regression | ||
- job: 'Test suite' | ||
paths: | ||
- .github/workflows/testsuite.yml | ||
- superdsm/** | ||
- examples/** | ||
- superdsm.yml | ||
- tests/** |
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ version: 2 | |
build: | ||
os: "ubuntu-20.04" | ||
tools: | ||
python: "3.7" | ||
python: "3.9" | ||
|
||
sphinx: | ||
fail_on_warning: true | ||
|
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
sphinx-autorun>=1.1.1 | ||
sphinx-rtd-theme | ||
pillow==10.2 # newer versions seem to require numpy>=1.21 which conflicts with /requirements.txt |
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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"runnable": true, | ||
"num_cpus": 16, | ||
"environ": { | ||
"MKL_NUM_THREADS": 2, | ||
"OPENBLAS_NUM_THREADS": 2 | ||
|
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,6 +1,5 @@ | ||
{ | ||
"runnable": false, | ||
"num_cpus": 16, | ||
"environ": { | ||
"MKL_NUM_THREADS": 2, | ||
"OPENBLAS_NUM_THREADS": 2 | ||
|
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,6 +1,5 @@ | ||
{ | ||
"runnable": false, | ||
"num_cpus": 16, | ||
"environ": { | ||
"MKL_NUM_THREADS": 2, | ||
"OPENBLAS_NUM_THREADS": 2 | ||
|
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,6 +1,5 @@ | ||
{ | ||
"runnable": false, | ||
"num_cpus": 16, | ||
"environ": { | ||
"MKL_NUM_THREADS": 2, | ||
"OPENBLAS_NUM_THREADS": 2 | ||
|
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,6 +1,5 @@ | ||
{ | ||
"runnable": false, | ||
"num_cpus": 16, | ||
"environ": { | ||
"MKL_NUM_THREADS": 2, | ||
"OPENBLAS_NUM_THREADS": 2 | ||
|
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,6 +1,5 @@ | ||
{ | ||
"runnable": false, | ||
"num_cpus": 16, | ||
"environ": { | ||
"MKL_NUM_THREADS": 2, | ||
"OPENBLAS_NUM_THREADS": 2 | ||
|
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.