diff --git a/.codacy.yml b/.codacy.yml new file mode 100644 index 0000000..2e7468d --- /dev/null +++ b/.codacy.yml @@ -0,0 +1,15 @@ +# To validate the contents of your configuration file +# run the following command in the folder where the configuration file is located: +# codacy-analysis-cli validate-configuration --directory `pwd` +# To analyse, run: +# codacy-analysis-cli analyse --tool remark-lint --directory `pwd` +--- +engines: + pylintpython3: + exclude_paths: + - config/engines.yml + remark-lint: + exclude_paths: + - config/engines.yml +exclude_paths: + - 'tests/**' diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 0000000..cbf6b65 --- /dev/null +++ b/.codecov.yml @@ -0,0 +1,2 @@ +comment: + require_changes: yes diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..5fd277b --- /dev/null +++ b/.travis.yml @@ -0,0 +1,35 @@ +dist: bionic +sudo: false +language: python +python: 3.8 +cache: + directories: + - "./tests/artifacts" + # - "$HOME/.prototorch/datasets" +install: +- pip install .[all] --progress-bar off + +# Generate code coverage report +script: +- coverage run -m pytest + +# Push the results to codecov +after_success: +- bash <(curl -s https://codecov.io/bash) + +# Publish on PyPI +deploy: + provider: pypi + username: __token__ + password: + secure: rVQNCxKIuiEtMz4zLSsjdt6spG7cf3miKN5eqjxZfcELALHxAV4w/+CideQObOn3u9emmxb87R9XWKcogqK2MXqnuIcY4mWg7HUqaip1bhz/4YiVXjFILcG6itjX9IUF1DrtjKKRk6xryucSZcEB7yTcXz1hQTb768KWlLlKOVTRNwr7j07eyeafexz/L2ANQCqfOZgS4b0k2AMeDBRPykPULtyeneEFlb6MJZ2MxeqtTNVK4b/6VsQSZwQ9jGJNGWonn5Y287gHmzvEcymSJogTe2taxGBWawPnOsibws9v88DEAHdsEvYdnqEE3hFl0R5La2Lkjd8CjNUYegxioQ57i3WNS3iksq10ZLMCbH29lb9YPG7r6Y8z9H85735kV2gKLdf+o7SPS03TRgjSZKN6pn4pLG0VWkxC6l8VfLuJnRNTHX4g6oLQwOWIBbxybn9Zw/yLjAXAJNgBHt5v86H6Jfi1Va4AhEV6itkoH9IM3/uDhrE/mmorqyVled/CPNtBWNTyoDevLNxMUDnbuhH0JzLki+VOjKnTxEfq12JB8X9faFG5BjvU9oGjPPewrp5DGGzg6KDra7dikciWUxE1eTFFDhMyG1CFGcjKlDvlAGHyI6Kih35egGUeq+N/pitr2330ftM9Dm4rWpOTxPyCI89bXKssx/MgmLG7kSM= + on: + tags: true + skip_existing: true + +# The password is encrypted with: +# `cd prototorch && travis encrypt your-pypi-api-token --add deploy.password` +# See https://docs.travis-ci.com/user/deployment/pypi and +# https://github.com/travis-ci/travis.rb#installation +# for more details +# Note: The encrypt command does not work well in ZSH. diff --git a/setup.py b/setup.py index cad6408..31438d6 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ with open("README.md", "r") as fh: INSTALL_REQUIRES = ["prototorch", "pytorch_lightning", "torchmetrics"] EXAMPLES = ["matplotlib", "scikit-learn"] -TESTS = ["pytest"] +TESTS = ["codecov", "pytest"] ALL = EXAMPLES + TESTS setup(