-
Notifications
You must be signed in to change notification settings - Fork 109
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
Use fetch-depth 1024 instead of 0 #9715
Conversation
@@ -23,7 +23,7 @@ jobs: | |||
steps: | |||
- uses: actions/checkout@v4 | |||
with: | |||
fetch-depth: 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe set fetch-tags to true?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Else you will get ert version 0.1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed by removing all together as this workflow does not depend on having the correct version.
c41b959
to
7db248e
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9715 +/- ##
==========================================
- Coverage 91.73% 91.72% -0.01%
==========================================
Files 426 426
Lines 26542 26549 +7
==========================================
+ Hits 24348 24353 +5
- Misses 2194 2196 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
CodSpeed Performance ReportMerging #9715 will not alter performanceComparing Summary
|
7db248e
to
be1e448
Compare
This uses a bit of a hack for checking out with sub modules where we assume the latest version tag is no more than 1024 commits ago.
be1e448
to
7bd0c67
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Impressive enhancement this is. 🥇
This is a bit of a hack that assumes that git describe is correct with the last 1024 commits to save time.
git rebase -i main --exec 'pytest tests/ert/unit_tests -n logical -m "not integration_test"'
)When applicable