Skip to content

MAINT: Add exercising of cli with coverage #139

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 1 commit into from
Sep 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,14 @@ jobs:
mkdir -p ~/tests/ ~/coverage/
export TEMPLATEFLOW_USE_DATALAD=on
python -m pytest \
--junit-xml=~/tests/datalad.xml --cov templateflow --cov-report xml:~/coverage/cov_api_dl.xml \
--doctest-modules templateflow/api.py
--junit-xml=~/tests/datalad.xml --cov templateflow --doctest-modules \
templateflow/api.py

coverage run --append -m templateflow.cli config
coverage run --append -m templateflow.cli ls MNI152NLin2009cAsym --suffix T1w
coverage run --append -m templateflow.cli get MNI152NLin2009cAsym --suffix mask
coverage run --append -m templateflow.cli update
coverage xml -o ~/coverage/cov_api_dl.xml

- codecov/upload:
file: ~/coverage/cov_api_dl.xml
Expand All @@ -140,8 +146,13 @@ jobs:
export TEMPLATEFLOW_USE_DATALAD=off
export TEMPLATEFLOW_HOME=$HOME/templateflow-s3
python -m pytest \
--junit-xml=~/tests/s3.xml --cov templateflow --cov-report xml:~/coverage/cov_api_s3.xml \
--doctest-modules templateflow/api.py
--junit-xml=~/tests/s3.xml --cov templateflow --doctest-modules templateflow/api.py

coverage run --append -m templateflow.cli config
coverage run --append -m templateflow.cli ls MNI152NLin2009cAsym --suffix T1w
coverage run --append -m templateflow.cli get MNI152NLin2009cAsym --suffix mask
coverage run --append -m templateflow.cli update
coverage xml -o ~/coverage/cov_api_s3.xml

- codecov/upload:
file: ~/coverage/cov_api_s3.xml
Expand Down
Loading