When should we update dvc.lock and dvc push in GitHub Actions? #6542
Unanswered
hongbo-miao
asked this question in
Help
Replies: 1 comment 6 replies
-
Maybe you can use the See https://docs.github.com/en/actions/reference/events-that-trigger-workflows#pull_request |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, my GitHub Actions workflow looks like this: when I open a pull request (change some model codes / params), CML creates a AWS EC2 instance, and DVC pull the data.
Here is my current GitHub Actions workflow:
Click to expand!
My dvc.yaml looks like this:
After training, if I think the change is good because the performance is better based on the reports,
model.pt
needs to be uploaded to AWS S3 in my case.My question is, after
dvc repro
, am I supposed to adddvc push
and then commit? Something likeThis above method will apply when the pull request is open.
However, I kind of feeling the best moment adding would be when I decide merging because I think this is a good pull request that actually improves the machine learning performance. But at this moment, the EC2 instance has been destroyed.
Any suggestion? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions