generated from ME-ICA/template-package
-
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.
Initial commit with changes to template
- Loading branch information
Showing
22 changed files
with
182 additions
and
208 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 +1 @@ | ||
0/tmp/src/template-package/docs/_build/html/index.html | ||
0/tmp/src/tedana_regressors/docs/_build/html/index.html |
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 |
---|---|---|
|
@@ -6,20 +6,19 @@ version: 2.1 | |
orbs: | ||
codecov: codecov/[email protected] | ||
jobs: | ||
|
||
py36_unittest: | ||
working_directory: /tmp/src/template-package | ||
working_directory: /tmp/src/tedana_regressors | ||
docker: | ||
- image: continuumio/miniconda3 | ||
steps: | ||
- checkout | ||
- persist_to_workspace: | ||
root: /tmp | ||
paths: | ||
- src/template-package | ||
- run: # will overwrite template-package installation each time | ||
- src/tedana_regressors | ||
- run: # will overwrite tedana_regressors installation each time | ||
name: Generate environment | ||
command: | | ||
command: | | ||
if [[ -e /opt/conda/envs/py36_env ]]; then | ||
echo "Restoring environment from cache" | ||
source activate py36_env | ||
|
@@ -31,25 +30,25 @@ jobs: | |
python setup.py install --user | ||
- run: | ||
name: Run tests | ||
command: | | ||
command: | | ||
apt-get update | ||
apt-get install -yqq make | ||
source activate py36_env | ||
make unittest | ||
py37_unittest: | ||
working_directory: /tmp/src/template-package | ||
working_directory: /tmp/src/tedana_regressors | ||
docker: | ||
- image: continuumio/miniconda3 | ||
steps: | ||
- checkout | ||
- persist_to_workspace: | ||
root: /tmp | ||
paths: | ||
- src/template-package | ||
- run: # will overwrite template-package installation each time | ||
- src/tedana_regressors | ||
- run: # will overwrite tedana_regressors installation each time | ||
name: Generate environment | ||
command: | | ||
command: | | ||
if [[ -e /opt/conda/envs/py37_env ]]; then | ||
echo "Restoring environment from cache" | ||
source activate py37_env | ||
|
@@ -61,25 +60,25 @@ jobs: | |
python setup.py install --user | ||
- run: | ||
name: Run tests | ||
command: | | ||
command: | | ||
apt-get update | ||
apt-get install -yqq make | ||
source activate py37_env | ||
make unittest | ||
py38_unittest: | ||
working_directory: /tmp/src/template-package | ||
working_directory: /tmp/src/tedana_regressors | ||
docker: | ||
- image: continuumio/miniconda3 | ||
steps: | ||
- checkout | ||
- persist_to_workspace: | ||
root: /tmp | ||
paths: | ||
- src/template-package | ||
- run: # will overwrite template-package installation each time | ||
- src/tedana_regressors | ||
- run: # will overwrite tedana_regressors installation each time | ||
name: Generate environment | ||
command: | | ||
command: | | ||
if [[ -e /opt/conda/envs/py38_env ]]; then | ||
echo "Restoring environment from cache" | ||
source activate py38_env | ||
|
@@ -92,27 +91,27 @@ jobs: | |
python setup.py install --user | ||
- run: | ||
name: Run tests | ||
command: | | ||
command: | | ||
apt-get update | ||
apt-get install -yqq make | ||
source activate py38_env | ||
make unittest | ||
py39_env: | ||
working_directory: /tmp/src/template-package | ||
working_directory: /tmp/src/tedana_regressors | ||
docker: | ||
- image: continuumio/miniconda3 | ||
steps: | ||
- checkout | ||
- persist_to_workspace: | ||
root: /tmp | ||
paths: | ||
- src/template-package | ||
- restore_cache: # ensure this step occurs *before* installing dependencies | ||
key: deps1-{{ checksum "template-package/setup.cfg" }}-{{ checksum "setup.py" }} | ||
- run: # will overwrite template-package installation each time | ||
- src/tedana_regressors | ||
- restore_cache: # ensure this step occurs *before* installing dependencies | ||
key: deps1-{{ checksum "tedana_regressors/setup.cfg" }}-{{ checksum "setup.py" }} | ||
- run: # will overwrite tedana_regressors installation each time | ||
name: Generate environment | ||
command: | | ||
command: | | ||
if [[ -e /opt/conda/envs/py39_env ]]; then | ||
echo "Restoring environment from cache" | ||
source activate py39_env | ||
|
@@ -122,40 +121,40 @@ jobs: | |
pip install -e .[tests,doc] | ||
fi | ||
python setup.py install --user | ||
- save_cache: # environment cache tied to requirements | ||
key: deps1-{{ checksum "template-package/setup.cfg" }}-{{ checksum "setup.py" }} | ||
- save_cache: # environment cache tied to requirements | ||
key: deps1-{{ checksum "tedana_regressors/setup.cfg" }}-{{ checksum "setup.py" }} | ||
paths: | ||
- "/opt/conda/envs/py39_env" | ||
|
||
py39_unittest_and_coverage: | ||
working_directory: /tmp/src/template-package | ||
working_directory: /tmp/src/tedana_regressors | ||
docker: | ||
- image: continuumio/miniconda3 | ||
steps: | ||
- attach_workspace: # get template-package | ||
- attach_workspace: # get tedana_regressors | ||
at: /tmp | ||
- restore_cache: # load environment | ||
key: deps1-{{ checksum "template-package/setup.cfg" }}-{{ checksum "setup.py" }} | ||
- restore_cache: # load environment | ||
key: deps1-{{ checksum "tedana_regressors/setup.cfg" }}-{{ checksum "setup.py" }} | ||
- run: | ||
name: Run tests and compile coverage | ||
command: | | ||
command: | | ||
apt-get update | ||
apt-get install -yqq make | ||
apt-get install -yqq curl | ||
source activate py39_env | ||
make unittest | ||
- codecov/upload: | ||
file: /tmp/src/template-package/coverage.xml | ||
file: /tmp/src/tedana_regressors/coverage.xml | ||
|
||
build_docs: | ||
working_directory: /tmp/src/template-package | ||
working_directory: /tmp/src/tedana_regressors | ||
docker: | ||
- image: continuumio/miniconda3 | ||
steps: | ||
- attach_workspace: # get template-package | ||
- attach_workspace: # get tedana_regressors | ||
at: /tmp | ||
- restore_cache: # load environment | ||
key: deps1-{{ checksum "template-package/setup.cfg" }}-{{ checksum "setup.py" }} | ||
- restore_cache: # load environment | ||
key: deps1-{{ checksum "tedana_regressors/setup.cfg" }}-{{ checksum "setup.py" }} | ||
- run: | ||
name: Build documentation | ||
command: | | ||
|
@@ -165,22 +164,22 @@ jobs: | |
make -C docs html | ||
no_output_timeout: 30m | ||
- store_artifacts: | ||
path: /tmp/src/template-package/docs/_build/html | ||
path: /tmp/src/tedana_regressors/docs/_build/html | ||
|
||
style_check: | ||
working_directory: /tmp/src/template-package | ||
working_directory: /tmp/src/tedana_regressors | ||
docker: | ||
- image: continuumio/miniconda3 | ||
steps: | ||
- attach_workspace: # get template-package | ||
- attach_workspace: # get tedana_regressors | ||
at: /tmp | ||
- restore_cache: # load environment | ||
key: deps1-{{ checksum "template-package/setup.cfg" }}-{{ checksum "setup.py" }} | ||
- restore_cache: # load environment | ||
key: deps1-{{ checksum "tedana_regressors/setup.cfg" }}-{{ checksum "setup.py" }} | ||
- run: | ||
name: Linting | ||
command: | | ||
command: | | ||
source activate py39_env | ||
flake8 /tmp/src/template-package/template-package | ||
flake8 /tmp/src/tedana_regressors/tedana_regressors | ||
- store_artifacts: | ||
path: /tmp/data/lint | ||
|
||
|
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 +1 @@ | ||
template-package/_version.py export-subst | ||
tedana_regressors/_version.py export-subst |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,2 @@ | ||
include versioneer.py | ||
include template-package/_version.py | ||
include tedana_regressors/_version.py |
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
Oops, something went wrong.