Skip to content

Commit

Permalink
Merge pull request #451 from CircleCI-config-suggestions-bot/StoreTes…
Browse files Browse the repository at this point in the history
…tResults

Update .circleci/config.yml to use store_test_results
  • Loading branch information
smoia authored May 10, 2023
2 parents 74858b5 + f6f4bee commit 8473e07
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,16 @@ jobs:
pkg-manager: pip-dist
# app-dir: ~/project/package-directory/ # If you're requirements.txt isn't in the root directory.
# pip-dependency-file: test-requirements.txt # if you have a different name for your requirements file, maybe one that combines your runtime and test requirements.
- run: mkdir -p test-results
- run:
name: Run tests
# This assumes pytest is installed via the install-package step above
command: |
pytest --cov=./phys2bids
pytest --junitxml=test-results/junit.xml -o junit_family=legacy --cov=./phys2bids
mkdir /tmp/src/coverage
mv ./.coverage /tmp/src/coverage/.coverage.py37
- store_test_results:
path: test-results
- store_artifacts:
path: /tmp/src/coverage
# Persist the specified paths (workspace/echo-output) into the workspace for use in downstream job.
Expand All @@ -70,12 +73,15 @@ jobs:
pypi-cache: false
venv-cache: false
pkg-manager: pip-dist
- run: mkdir -p test-results
- run:
name: Run tests
command: |
pytest --cov=./phys2bids
pytest --junitxml=test-results/junit.xml -o junit_family=legacy --cov=./phys2bids
mkdir /tmp/src/coverage
mv ./.coverage /tmp/src/coverage/.coverage.py310
- store_test_results:
path: test-results
- store_artifacts:
path: /tmp/src/coverage
- persist_to_workspace:
Expand Down

0 comments on commit 8473e07

Please sign in to comment.