-
Notifications
You must be signed in to change notification settings - Fork 13
WIP: Add integration testing and github actions #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 68 commits
Commits
Show all changes
82 commits
Select commit
Hold shift + click to select a range
8533f52
Add integration testing and github actions
mnoergaard a2c99a9
FIX: upgrade actions version
mnoergaard 4ddc87a
FIX: add git ignore
mnoergaard df957ff
FIX: Update test_fsl6.py to use packaging.version.Version
mnoergaard ebf748d
ENH: replace fmriprep imports with petprep (testing)
mnoergaard 2b463e3
FIX: update coverage.yml
mnoergaard 5ff490c
FIX: Update out_dir path in test_bids
mnoergaard 9edf34c
FIX: Update tests for PET reference files
mnoergaard 8d604e8
FIX: Fix ImportError in test_reports.py
mnoergaard e31b836
FIX: update env.yml to be in line with fmriprep
mnoergaard acaacc2
FIX: minor changes from fmriprep to petprep
mnoergaard 3850edb
ENH: add circleci config
mnoergaard ce25a9b
FIX: remove slice timing and sdc flows test from test_parser
mnoergaard 8bdc9aa
ENH: add PET test data to ds000005
mnoergaard daf19ce
FIX: add import json
mnoergaard ff2a43c
FIX: Edit test_base.py to define freesurfer variable
mnoergaard a4145e7
ENH: add PET report outputs
mnoergaard f02d34f
FIX: Update report test to match petprep files
mnoergaard 8c6add0
FIX: report test
mnoergaard 19a3e84
FIX: remove cli integration test
mnoergaard 2aa025b
Update NOTICE
mnoergaard 9d115f7
FIX: update subject ID
mnoergaard 2c8e0d8
FIX: Fix test_baseline_found_as_str assertion error
mnoergaard a67e99a
FIX: update test derivative cache
mnoergaard fa238a4
FIX: update test to match filename
mnoergaard f7f8fdc
FIX: remove desc entity
mnoergaard f231951
FIX: add pet suffix to io_spec.json
mnoergaard 846efcb
Update test_derivative_cache.py
mnoergaard 9046e47
FIX: update collect derivatives
mnoergaard 78383a2
FIX: update collect derivatives
mnoergaard 77f796c
FIX: modify collect derivatives to grab PET files
mnoergaard c84f313
FIX: get layout and add nipreps.json to data dir
mnoergaard 83ae00e
fix estimate_pet_mem_usage
mnoergaard 5342188
FIX: handle a single filename
mnoergaard cdc0de1
FIX: update base workflow to distinguish between pet_series and pet_file
mnoergaard 210806a
FIX: update fit to match pet_series and pet_file
mnoergaard 3ae5399
FIX: allow parsing of metadata to apply
mnoergaard e4a33a9
FIX: remove metadata parsing in init_pet_volumetric_resample_wf
mnoergaard 4e5be1b
Update test_base.py
mnoergaard 4758d05
FIX: update import in resampling to be petprep
mnoergaard 32023b2
FIX: update test_fit to match pet_series
mnoergaard f183be7
FIX: fix typo
mnoergaard 88a3699
FIX: update mask test
mnoergaard ee573a4
FIX: add pytest and Path to mask test
mnoergaard 980cec1
FIX: change threshold for n pet_series volumes
mnoergaard bd00e6d
FIX: update data in mask test
mnoergaard 570330a
FIX: update mask test
mnoergaard a6fa7bc
FIX: update test_base with fmriprep to petprep
mnoergaard e1dcb77
FIX: update base test to match PET data
mnoergaard cf72706
FIX: SDC related stuff
mnoergaard 8dd3360
FIX: add PET query to base
mnoergaard da5db44
FIX: update query to grab PET data
mnoergaard 0ce3bbe
FIX: add PET json example
mnoergaard 4d89a6e
FIX: update test_base to collect PET data
mnoergaard a537259
FIX: update collect_data import
mnoergaard f7a26fa
FIX: bump niworkflows and pybids versions
mnoergaard ac5d4f1
FIX: bump version and niworkflows version
mnoergaard e756609
FIX: update base and test
mnoergaard 7554e2b
FIX: update test_base
mnoergaard df86069
FIX: import niworkflows
mnoergaard 91a29a2
FIX: update collect_data part
mnoergaard ac33720
Update test_base.py
mnoergaard b180c6e
FIX: remove collect_data part from test
mnoergaard 16ec28a
Update test_base.py
mnoergaard 3da085e
FIX: listify pet_series
mnoergaard ae8d4c5
FIX: update fmriprep naming to petprep in resampling
mnoergaard 486a742
FIX: remove TR related parts from workflows
mnoergaard 4538b2a
FIX: Fix InvalidVersion error in test_fsl6.py
mnoergaard b62148c
FIX: _version.py added to .gitignore
mnoergaard fda7543
FIX: apply suggestions from code review
mnoergaard d194eaf
FIX: Delete _slice_time_ref from parser.py
mnoergaard 03aaa03
FIX: removed slice timing from outputs
mnoergaard 8a29386
FIX: Remove slice-timing correction references from documentation
mnoergaard a7b6de9
FIX: remove config from test_fit
mnoergaard 3de19fa
FIX: [doctest] petprep.interfaces.workbench.MetricFillHoles
mnoergaard 6d15a80
FIX: remove coverage.yml
mnoergaard 3cdd5e0
FIX: update github tests.yml to be more in line with fmriprep
mnoergaard 5b68753
FIX: apply suggested changes from tox
mnoergaard 2386e08
FIX: bump niworkflows version to 1.13.4
mnoergaard 8e81cf9
FIX: update fmriprep naming to petprep
mnoergaard 5ff1c0a
FIX: add require_pet to BIDSDataGrabber
mnoergaard 2017d45
FIX: add require_pet to test_base
mnoergaard File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,30 @@ | ||
| version: 2.1 | ||
|
|
||
| orbs: | ||
| conda: circleci/[email protected] | ||
|
|
||
| jobs: | ||
| tests: | ||
| executor: | ||
| name: conda/default | ||
| steps: | ||
| - checkout | ||
| - conda/update-env: | ||
| environment-file: env.yml | ||
| environment-name: petprep | ||
| - conda/run: | ||
| environment-name: petprep | ||
| command: | | ||
| pip install -e .[tests] | ||
| pytest -n auto --junitxml=test-results/junit.xml --cov=petprep --cov-report=xml | ||
| - store_test_results: | ||
| path: test-results | ||
| - store_artifacts: | ||
| path: coverage.xml | ||
| destination: coverage.xml | ||
|
|
||
| workflows: | ||
| version: 2 | ||
| test: | ||
| jobs: | ||
| - tests |
This file contains hidden or 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 hidden or 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,25 @@ | ||
| name: Tests | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| pull_request: | ||
| branches: | ||
| - main | ||
|
|
||
| jobs: | ||
| tests: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| python-version: ["3.10", "3.11", "3.12"] | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| - run: pip install -e .[tests] | ||
| - run: pytest -sv | ||
| - name: Upload coverage to Codecov | ||
| uses: codecov/codecov-action@v4 |
This file contains hidden or 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,31 @@ | ||
| # Python cache and bytecode files | ||
| __pycache__/ | ||
| *.py[cod] | ||
| *$py.class | ||
|
|
||
| # Coverage reports | ||
| .coverage | ||
| .coverage.* | ||
| htmlcov/ | ||
| coverage.xml | ||
|
|
||
| # Build directories | ||
| build/ | ||
| dist/ | ||
| .eggs/ | ||
| *.egg-info/ | ||
| *.egg | ||
| # docs build | ||
| /docs/_build/ | ||
|
|
||
| # Editor and OS artifacts | ||
| .DS_Store | ||
| *.swp | ||
| *~ | ||
| .vscode/ | ||
| .idea/ | ||
| .env | ||
| .envrc | ||
|
|
||
| # Additional | ||
| .ipynb_checkpoints/ |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,15 @@ | ||
| PETPrep | ||
| Copyright The NiPreps Developers. | ||
|
|
||
| This product includes software developed by | ||
| the NiPreps Community (https://nipreps.org/). | ||
|
|
||
| Portions of this software were developed at the Department of | ||
| Psychology at Stanford University, Stanford, CA, US. | ||
|
|
||
| This software is also distributed as a Docker container image. | ||
| The bootstrapping file for the image ("Dockerfile") is licensed | ||
| under the MIT License. | ||
|
|
||
| This software may be distributed through an add-on package called | ||
| "Docker Wrapper" that is under the BSD 3-clause License. |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.