A clear and concise description of what the problem is. For example, "I'm always frustrated when..."
GitHub Actions will eventually cost money corresponding to their duration.
Solution
A clear and concise description of what you want to happen.
In CI, run several unit tests in parallel. pytest-xdist should do the trick. Things to modify:
requirements.txt – add pytest-xdist.
Makefile – need to add a separate test-ci target that runs tests in parallel.
.github/workflows/python-package.yml – need to install pytest-xdist rather than stock pytest.
Considered alternatives
A clear and concise description of any alternative solutions or features you've considered.
Not making this change: it complicates dev dependencies, and this CI config isn't costing me anything yet.
Mocking requests: this would be good for the performance of all but a couple of tests (which should retain the network logic for sensitivity to API changes).
Additional context
Add any other context about the feature request here.
I'll hold off on this until CI starts costing money.
I've moved in a different direction: make CI abide by the rate limit (as much as possible) for confidence rate-related issues don't make tests flake. CI remains essentially free.
Motivation
GitHub Actions will eventually cost money corresponding to their duration.
Solution
In CI, run several unit tests in parallel.
pytest-xdist
should do the trick. Things to modify:pytest-xdist
.test-ci
target that runs tests in parallel.pytest-xdist
rather than stockpytest
.Considered alternatives
Additional context
I'll hold off on this until CI starts costing money.