diff --git a/.circleci/config.yml b/.circleci/config.yml index 0204406..753d7c2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -11,10 +11,13 @@ jobs: # key: -{{ .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" }} @@ -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