-
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.
* Add missing requirement for TIFF reading * Add regression tests for BBBC039 * Fix bug in regression tests * Add regression tests for GOWT1 datasets * Add regression tests for NIH3T3 datasets * Add regression tests for U2OS dataset * Add regression tests workflow * Update workflow * Fix workflow * Fix expected regression test results * Fix workflow * Fix workflow * Fix workflow * Fix workflow * Fix workflow * Fix workflow * Fix workflow * Fix workflow * Fix workflow * Update regressiontests.yml * Update regressiontests.yml * Update regressiontests.yml * Fix workflow * Fix workflow * Fix workflow * Fix workflow * Fix workflow * Fix workflow * Fix workflow * Add `SUPERDSM_INTERMEDIATE_OUTPUT` environment variable Set `SUPERDSM_INTERMEDIATE_OUTPUT=0` to disable intermediate console output. * Add `MKL_DEBUG_CPU_TYPE=5` to workflow * Update regressiontests.yml * Update regressiontests.yml * Update regressiontests.yml * Fix workflow * Set workflow job timeout to 24 hours * Fix dependency versions for reproducibility * Fix conda channels * Disable `use_only_tar_bz2` * Add test example * Pin all dependency versions * Unset `MKL_DEBUG_CPU_TYPE=5` * Add CPU vendor recognition * Add more images to test task * Add missing expected test results * Set `MKL_DEBUG_CPU_TYPE=1` on non-AMD CPUs * Upload artifact with results upon failure * Unset `MKL_DEBUG_CPU_TYPE` if set to `5` on Intel CPUs * Add trigger * Adapt expected results of regression tests for Intel Xeon CPU * Activate remaining regression tests * Fix version of `upload-artifact` * Add debug info * Fix * Reenable test * Combine regression tests into bash scripts * Add testsuite workflow * Update workflow name * Add dry run for debugging * Fix regression tests * Add regression test results for AMD Threadripper 3970X CPU * Do not change `MKL_DEBUG_CPU_TYPE` on Intel CPUs * Fix regression tests expected results * Fix expected regression test results for AMD CPU * Fix
- Loading branch information
Showing
1,692 changed files
with
118,968 additions
and
15 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,71 @@ | ||
name: Regression tests | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: ['develop'] | ||
paths: | ||
- .github/workflows/regressiontests.yml | ||
- superdsm | ||
- examples | ||
- superdsm.yml | ||
- tests/regression | ||
|
||
jobs: | ||
|
||
regression_tests: | ||
name: "Test: ${{ matrix.taskdir }}" | ||
timeout-minutes: 1440 | ||
runs-on: self-hosted | ||
defaults: | ||
run: | ||
shell: bash -el {0} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
taskdir: | ||
- U2OS | ||
- NIH3T3 | ||
- GOWT1-1 | ||
- GOWT1-2 | ||
- BBBC039 | ||
|
||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- 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 | ||
|
||
- 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,34 @@ | ||
name: Test suite | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: ['develop'] | ||
|
||
jobs: | ||
|
||
run_testsuite: | ||
name: Test suite | ||
timeout-minutes: 1440 | ||
runs-on: self-hosted | ||
defaults: | ||
run: | ||
shell: bash -el {0} | ||
|
||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- 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,18 @@ | ||
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 |
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 |
---|---|---|
|
@@ -8,3 +8,4 @@ cvxopt==1.2.6 | |
cvxpy==1.1.13 | ||
matplotlib>=3.0 | ||
mkl>=2020.0 | ||
imagecodecs==2022.9.26 |
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,3 +1,5 @@ | ||
from . import cpu_setup | ||
|
||
from .version import * | ||
__version__ = VERSION | ||
|
||
|
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.