-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add basic action to run current tests #49
Conversation
…lizing pipelines)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's great to see the tests running!
I left some suggestions.
.github/workflows/tests.yml
Outdated
run: pip install hatch==${{ env.HATCH_VERSION }} | ||
|
||
- name: Run unit and integration tests | ||
run: hatch run test:all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest to also run and report coverage.
These commands can serve as examples: https://github.com/deepset-ai/haystack-core-integrations/blob/4f067b9b183020d039be017990eb7f868e116099/integrations/amazon_bedrock/pyproject.toml#L53
Even if the report is only visible in GitHub Actions, it is still inspectable
An example: https://github.com/deepset-ai/haystack-core-integrations/actions/runs/12397435961/job/34607798450?pr=1255
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, I was planning to add it later, but we can run test:cov
here to get both tests and cov output.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work!
Feel free to incorporate the suggestion
Co-authored-by: Stefano Fiorucci <[email protected]>
With this I am adding a basic action to run tests on Python
3.9
-3.12
(I've removed3.7
-3.8
support which was present inpyproject.toml
).