alephdata / servicelayer

Common interface definitions for aleph toolkit services and applications
MIT License
7 stars 5 forks source link

Standardize development dependencies / refactor GHA workflow #153

Closed tillprochaska closed 3 months ago

tillprochaska commented 8 months ago

This PR contains a few changes loosely related to the management of development dependencies and the CI setup.

I initially started out trying to install development dependencies locally, but neither pip install -e .[dev] nor pip install -r requirements-dev.txt alone were enough as some dependencies are only specified in the dev extra and others only in the requirements file.

As there seems to be a preference towards using requirements-dev.txt vs. a dev extra for development dependencies, I’ve added any dependencies listed in the dev extra to requirements-dev.txt and removed the dev extra so that we only have one list of dev dependencies to maintain.

Along the way I noticed a few quirks with the setup of the GitHub Actions workflow which made it difficult to reproduce and debug issues so I’ve tried to clean up the setup a little bit by removing unnecessary steps (see commit messages for details). Some of these changes are probably a little opinionated, so feel free to object if you don't like them.

Pointing out two changes here explicitly as they might impact your preferred workflows: