trash-cli
trash-cli copied to clipboard
Continuous Testing on Python 2.7
trafficstars
Describe the bug Missing test workflow for python 2.7. In the past trash-cli supported both python 2.7 and the newer versions of python 3.x leveraging the Git Hub Actions support. Recently Git Hub Action dropped the support of python 2.7 and so we no longer have a way to test the code automatically on Python 2.7.
To Reproduce
- Fork the project in your GitHub
- Enable Git Hub Actions on your repository
- Launch the actions and verify it no longer execute on python 2.7
- Edit
.github/workflows/run-tests.ymland add '2.7' to the python versions- e.g.
python-version: ['2.7', '3.7', '3.8', '3.9', '3.10', '3.11']
- e.g.
- Save, commit and push and see that is failing because 2.7 is not supported
Expected behavior That have a way to launch tests on every commit on python 2.7 like the old days.
Probably is just a matter of running an action on a custom image based on an LTS distribution that still provide support for python 2.7. (For me) it is not an easy task.
I hope that someone skilled can contribute a solution.