Skip to content
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

Merged
merged 13 commits into from
Dec 19, 2024
Merged

Add basic action to run current tests #49

merged 13 commits into from
Dec 19, 2024

Conversation

mpangrazzi
Copy link
Contributor

@mpangrazzi mpangrazzi commented Dec 19, 2024

With this I am adding a basic action to run tests on Python 3.9-3.12 (I've removed 3.7-3.8 support which was present in pyproject.toml).

@mpangrazzi mpangrazzi changed the title Add basic action to run tests Add basic action to run current tests Dec 19, 2024
@mpangrazzi mpangrazzi marked this pull request as ready for review December 19, 2024 10:24
Copy link
Member

@anakin87 anakin87 left a 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 Show resolved Hide resolved
.github/workflows/tests.yml Outdated Show resolved Hide resolved
run: pip install hatch==${{ env.HATCH_VERSION }}

- name: Run unit and integration tests
run: hatch run test:all
Copy link
Member

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

Copy link
Contributor Author

@mpangrazzi mpangrazzi Dec 19, 2024

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.

pyproject.toml Show resolved Hide resolved
Copy link
Member

@anakin87 anakin87 left a 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

pyproject.toml Outdated Show resolved Hide resolved
Co-authored-by: Stefano Fiorucci <[email protected]>
@mpangrazzi mpangrazzi merged commit 7ac3180 into main Dec 19, 2024
4 checks passed
@mpangrazzi mpangrazzi deleted the ci branch December 19, 2024 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants