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

Check examples/python/requirements.txt in CI #2063

Merged
merged 5 commits into from
May 9, 2023

Conversation

jprochazk
Copy link
Member

@jprochazk jprochazk commented May 9, 2023

Fixes #2027

  • Added check_requirements.py to check if the examples/python/requirements.txt file contains all every example's requirements.txt
  • Added the script in CI

Checklist

PR Build Summary: https://build.rerun.io/pr/2063

@jprochazk jprochazk added 🧑‍💻 dev experience developer experience (excluding CI) examples Issues relating to the Rerun examples dependencies concerning crates, pip packages etc labels May 9, 2023
@teh-cmc
Copy link
Member

teh-cmc commented May 9, 2023

Oh actually, would you mind adding an extra check to make sure the file is sorted please?

@jprochazk
Copy link
Member Author

@jprochazk jprochazk requested a review from teh-cmc May 9, 2023 13:09
@jprochazk
Copy link
Member Author

I've had the taplo-cli install fail before, it's a bit strange 🤔

Copy link
Member

@emilk emilk left a comment

Choose a reason for hiding this comment

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

niiiiice

@jprochazk jprochazk force-pushed the jan/check-example-requirements branch from 6ed9820 to d95df4b Compare May 9, 2023 13:42
@jprochazk jprochazk force-pushed the jan/check-example-requirements branch from d95df4b to 99cf2bc Compare May 9, 2023 13:43
@jprochazk jprochazk merged commit 78c9936 into main May 9, 2023
15 checks passed
@jprochazk jprochazk deleted the jan/check-example-requirements branch May 9, 2023 14:05
jprochazk added a commit that referenced this pull request May 11, 2023
* add `check_requirements.py`

* add `check_requirements.py` to CI checks

* add missing requirements

sorted alphabetically

* check if requirements are sorted

also intentionally submit incorrect `requirements.txt` so that CI fails

* fix `examples/python/requirements.txt`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies concerning crates, pip packages etc 🧑‍💻 dev experience developer experience (excluding CI) examples Issues relating to the Rerun examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

examples/python/requirements.txt doesn't contain all examples
3 participants