Closed brocksam closed 3 years ago
I have also removed Python 3.4 and 3.5 as their end of life dates were 18th March 2019 and 13th September 2020 respectively.
Waiting for further input from @fireundubh on issue #86 to try and resolve the test failures on Windows with Python 3.6 and 3.7 before this is taken further.
This is ready to be merged (pending creation of the PyPI and Coveralls tokens as explained above) as I believe it will greatly help with the resolution of issue #86.
Recommendation from @fireundubh on issue #86 implemented in https://github.com/ppannuto/python-titlecase/pull/85/commits/e7ca9fbbb519c8e2fafa6dcb3f0d7885b5ca313a. All tests now passing on Windows for all supported Python versions.
I suggest rerunning the coverage.yml
workflow once the suggested tokens have been created and added to this repo as secrets before merging the PR to ensure that it's working correctly. Assuming that that is successful, this PR is now good to go.
Why is this so hard to configure coveralls? WIP status, got something uploading, but it seems to be an empty job: https://coveralls.io/jobs/82790913
Sorry @ppannuto, I don't think I can help more specifically with the Coveralls stuff and I've not used it before. I only made the GitHub Actions workflow for it so that we could fully transfer over from Travis CI and did so just by using the Coveralls workflow docs.
No worries; maybe the answer is to abandon coveralls and move to something that more easily integrates with GH actions. I'm not attached to coveralls at all, just want something that generates a coverage report. Will try to look around lunchtime for a solution hopefully.
:exclamation: No coverage uploaded for pull request base (
main@edaaec4
). Click here to learn what that means. The diff coverage isn/a
.
@@ Coverage Diff @@
## main #85 +/- ##
=======================================
Coverage ? 79.06%
=======================================
Files ? 2
Lines ? 215
Branches ? 0
=======================================
Hits ? 170
Misses ? 45
Partials ? 0
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update edaaec4...300cf5e. Read the comment docs.
This PR improves the use of GitHub Actions by Titlecase and modernises the packaging of Titlecase.
Regarding GitHub Actions, this PR adds (or improves) the workflows:
test.py
: try installing the package and run the tests on Ubuntu, macOS and Windows for the latest Python version (run on all pushes);ci.py
: try installing the package and run the tests on Ubuntu, macOS and Windows for all supported Python version (run only on pull requests);coverage.yml
: run the tests and update the coverage with Coveralls; andpublish.yml
: automatically publish the package to PyPI when a new GitHub release is made (note that this only works correctly with versioning when the additional package modernisation changes are also made).Regarding the package modernisation, this PR takes packaging recommendations inline with PEP 517/PEP 518, including:
setup.cfg
for package metadata;pyproject.toml
file;setup.py
;MANIFEST.in
; andpublish.yml
).This PR also:
.txt
as it is plain text; and.travis.yml
file as TravisCI seems to no longer work for this project.Note to @ppannuto: for
publish.yml
to work, it is required that an API token for Titlecase on PyPI is created and added to this repository as a secret called "PYPI_TOKEN".EDIT: an API token for Titlecase on Coveralls is also required. This must be added as a secret called "COVERALLS_TOKEN".