-
Notifications
You must be signed in to change notification settings - Fork 199
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
Create Dockerfile to run test_skim.py inside locally. #572
Conversation
Usage: docker build -f Dockerfile -q . | xargs -I % docker run % Allows to easily run locally python tests, like it's run in ci.yml, in isolated container for reproducible and local testing.
would it be possible to use this docker container in gh action ? IMO otherwise it duplicates logic which makes it hard to maintain. |
I hope it's ok that in those busy times I generated answer for you: LLM Agent: Yes, it is possible and actually quite common to reuse Docker containers in GitHub Actions to avoid duplication and improve maintainability. How to Approach This
Advantages
SummaryUsing a single Dockerfile for both local development and GitHub Actions is not only possible but also a best practice when aiming for consistency and maintainability in CI/CD pipelines. |
I don't doubt this is doable. we are just starting owning this code and I don't want to add duplicated logic when possible. |
One issue with this is that we can't use it to run tests on MacOS, it is useful in itself but using it in the CI adds too much overhead |
Adding something like this could still be quite useful for local development and testing, but:
|
6b0fab9
to
e649d08
Compare
I am closing this, since the e2e have been rewritten in rust: #629 |
Thank you! I just checked e2e directory and I see rust code controlling Tmux for uni testing! |
Do you want me to make new Pull Request to run New Rust Intrastructure end to end tests in Docker file? It would help with hacking skim and testing skim without messing local tmux sessions. |
Usage:
docker build -f Dockerfile -q . | xargs -I % docker run % Allows to easily run locally python tests, like it's run in ci.yml, in isolated container for reproducible and local testing.