diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a4dc91b..0000000 --- a/.travis.yml +++ /dev/null @@ -1,57 +0,0 @@ -language: python -sudo: required -addons: - apt: - packages: - - curl - - gcc -notifications: - email: false -python: - # We don't actually use the Travis Python, but this keeps it organized. - - "3.9" - - "3.10" - - "3.11" -install: - # You may want to periodically update this, although the conda update - # conda line below will keep everything up-to-date. We do this - # conditionally because it saves us some downloading if the version is - # the same. - - wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; - - bash miniconda.sh -b -p $HOME/miniconda - - export PATH="$HOME/miniconda/bin:$PATH" - - hash -r - - conda config --set always_yes yes --set changeps1 no - - conda update -n base conda - # Useful for debugging any issues with conda - - conda info -a - - - conda create -n flagit python=${TRAVIS_PYTHON_VERSION} - - conda env update -f environment.yml -n flagit - - source activate flagit - - - conda list - - pip list - - which pip - - which python - -script: - - python setup.py test -after_success: - # report coverage results to coveralls.io - - pip install coveralls - - coveralls -deploy: - provider: pypi - # better than hiding the token would be to encrypt it with travis... - username: __token__ - password: $PYPI_TOKEN - skip_existing: true - on: - repo: TUW-GEO/flagit - tags: true -after_deploy: - # try install as in docs - - conda create -q -n flagit_deploy --yes -c conda-forge numpy scipy pandas - - source activate flagit_deploy - - pip install flagit diff --git a/README.rst b/README.rst index 1fbd93e..a8c26a0 100644 --- a/README.rst +++ b/README.rst @@ -2,7 +2,7 @@ flagit ====== -.. image:: https://github.com/TUW-GEO/flagit/workflows/Automated%20Tests/badge.svg?branch=main +.. image:: https://github.com/TUW-GEO/flagit/actions/workflows/build.yml/badge.svg?branch=main :target: https://github.com/TUW-GEO/flagit/actions .. image:: https://coveralls.io/repos/github/TUW-GEO/flagit/badge.svg?branch=main diff --git a/pyproject.toml b/pyproject.toml index 197efca..d1d1175 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,4 +7,5 @@ build-backend = "setuptools.build_meta" version_scheme = "no-guess-dev" [tool.pytest.ini_options] -pythonpath = ["src"] \ No newline at end of file +pythonpath = ["src"] +addopts = "--cov=flagit --cov-report=term-missing --verbose" \ No newline at end of file diff --git a/setup.cfg b/setup.cfg index 74b411f..040c37b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -78,8 +78,8 @@ extras = True # e.g. --cov-report html (or xml) for html/xml output or --junitxml junit.xml # in order to write a coverage file that can be read by Jenkins. addopts = - --cov flagit - --cov-report term-missing + --cov + --cov-report=term-missing --verbose [aliases]