I have a python package, and I am using poetry
for dependency management and packaging.
In my local environment, I am using tox
to test the package in multiple python version.
How can I use GitHub actions to test my package, everytime there is a push or pull request ?
Things that I have tried:
- https://github.com/actions/starter-workflows/blob/main/ci/python-package.yml
(this official action installs via
pip
andrequirements.txt
, but I am using poetry) - https://github.com/abatilo/actions-poetry
(this action, can install poetry, but using
pip
, which is not recommended by poetry, as it can cause conflict with my application dependencies, see issue ) - https://github.com/ymyzk/tox-gh-actions (should I use this ? why not rather run
pytest
in every matrix (of github actions), this action seems to defeat the purpose of tox)
I want to test my python code in gh-actions.
in my situation, what should I actually use ?
what are the best practices ? and most optimum tool