rolfberkenbosch / meteoalert-api

MIT License
12 stars 10 forks source link

Use GitHub workflow instead of Travis #12

Closed roaldnefs closed 3 years ago

roaldnefs commented 3 years ago

Replace Travis by GitHub Workflow as travis-ci.org will be shutting down in several weeks, see https://travis-ci.org/.

This PR also adds the tox test suite. The tests can be run locally using the following commands:

pip install tox

# Run tests using the available Python version
tox -e py

# Run flake8 linter
tox -e pep8

Note: don't forget to add the PYPI_TEST_TOKEN and PYPI_TOKEN secrets to the repository settings to allow automatic releases to PyPi on GitHub releases.