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

Running (part of) the ci specification file locally. #15

Open
thorwhalen opened this issue Dec 15, 2021 · 1 comment
Open

Running (part of) the ci specification file locally. #15

thorwhalen opened this issue Dec 15, 2021 · 1 comment
Assignees

Comments

@thorwhalen
Copy link
Member

By that, I mean when things like black or pytest have particular arguments, being able to use those (instead of repeatedly being the situation of "why doesn't it work?.... Oh, yeah, I need to ignore such an such a folder when I test...".

A lot of particulars are defined in the ci def file (e.g. ci.yml in github), it'd be nice to reuse these!

So I imagine doing something like this in the terminal

$ isee local PROJECT_ROOT_FOLDER

That would trigger something like:

  • Extract information from ci definition file (what is extracted can be configured)
  • Run some processes (parametrized by the info we extracted) locally
@thorwhalen
Copy link
Member Author

My guess is that this won't be too hard for a basic version.

  • Specify some patterns that will match the lines that should be extracted
  • Run these lines (possibly modified to refer to the right project, or after CDing to the right project so that the dot refers to the right folder) using subprocess module.

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

No branches or pull requests

2 participants