Skip to content

Commit

Permalink
testing matrix; circleci now faster
Browse files Browse the repository at this point in the history
  • Loading branch information
marcmaxson committed Jan 21, 2022
1 parent 0f60738 commit 036ef6e
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .circleci/config.yml
Expand Up @@ -11,10 +11,13 @@ jobs:
# key: <projectname>-{{ .Branch }}-{{ checksum "Pipfile.lock" }} projectname can be anything, so long as it matches save_cache below.
key: deps-0-{{ .Branch }}-{{ checksum "requirements.txt" }}
- run:
name: Installing pipenv packages
command: |
pip install pipenv
pipenv install --dev --skip-lock
pipenv install -e . --skip-lock # pytest recommends this: install your package in "editable" mode by running this from the same directory
pipenv install pytest-cov --skip-lock
pipenv install coveralls --skip-lock # for coveralls.io -- this can be in Pipfile [dev] instead.
# pipenv will use requirements.txt with these params.
- save_cache:
key: deps-0-{{ .Branch }}-{{ checksum "requirements.txt" }}
Expand All @@ -25,21 +28,14 @@ jobs:
- run:
name: Running tests and test coverage
command: |
pipenv install pytest-cov --skip-lock
pipenv install coveralls --skip-lock # for coveralls.io -- this can be in Pipfile [dev] instead.
pipenv run coverage run -m pytest tests --junit-xml=htmlcov/junit.xml
# pipenv run coverage run setup.py test
# pipenv run pytest tests --junit-xml=htmlcov/junit.xml # rerun tests to collect test-results
pipenv run coverage report
pipenv run coverage html
pipenv run coveralls
# set COVERALLS_REPO_TOKEN=<...> in ENVIRONMENT variables in circleci
# pipenv run coverage run --omit '*tests*','*/home/*' setup.py test
# moved omit to setup.cfg; broke on circleci - no uploads
- store_test_results:
path: htmlcov

- store_artifacts:
path: htmlcov
destination: methylize

0 comments on commit 036ef6e

Please sign in to comment.