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

ci: add downstream tests for altair + scikit-lego #533

Merged
merged 7 commits into from
Jul 16, 2024

Conversation

MarcoGorelli
Copy link
Member

What type of PR is this? (check all applicable)

  • πŸ’Ύ Refactor
  • ✨ Feature
  • πŸ› Bug Fix
  • πŸ”§ Optimization
  • πŸ“ Documentation
  • βœ… Test
  • 🐳 Other

Related issues

  • Related issue #
  • Closes #

Checklist

  • Code follows style guide (ruff)
  • Tests added
  • Documented the changes

If you have comments or can explain your changes, please do so below.

Comment on lines +3 to +6
on:
pull_request:
push:
branches: [main]
Copy link
Member

@FBruzzesi FBruzzesi Jul 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we consider to run it it both as workflow dispatch (i.e. manual trigger) and dependency of publish to pypi, instead of every PR?
I am not sure if you intend to add scikit-lego as well, but test suite there typically take between 2 and 5 mins

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah that might be better

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure if you intend to add scikit-lego as well

I will take it as a yes πŸ˜‚
image

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

altair actually takes less than our own tests πŸ˜„ I think we might as well keep that on in CI

and for scikit-lego, perhaps some tests these could be marked "slow", and we just skip those here?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree! I think it is enough to run everything without extra dependencies as in our scheduled ci

TL;DR

run: pytest -n auto --disable-warnings --cov=sklego -m "not cvxpy and not formulaic and not umap"

@MarcoGorelli MarcoGorelli changed the title ci: add downstream test ci: add downstream tests for altair + scikit-lego Jul 16, 2024
@MarcoGorelli MarcoGorelli marked this pull request as ready for review July 16, 2024 07:08
@MarcoGorelli
Copy link
Member Author

thanks @FBruzzesi ! this adds a 2-minute job for altair, and a 3-minute one for scikit-lego. for now, I'd suggest we play it safe and just run them, they're not too onerous

@MarcoGorelli MarcoGorelli merged commit 616076e into narwhals-dev:main Jul 16, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants