-
Notifications
You must be signed in to change notification settings - Fork 393
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
Run documentation tests on GitHub Actions and fix submodule error #8321
Conversation
@Myoldmopar I put an intentional warning in the documentation to illustrate this is working in the Big Ladder fork. It's now cleaned up and ready for review/merge. |
This looks really good, however the annotation appears to want to link out to the problem file, but isn't doing it. Is there any chance that can be improved so that the annotation link actually points back to the correct source file? Or maybe I'm missing something about the annotation. |
I believe this is an issue with the way annotations work: actions/runner#566 Hopefully GitHub fixes this up soon, because it would be a nice feature. |
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.
All good here, this is a nice start for making use of annotations.
] | ||
} | ||
] | ||
} |
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.
This is pretty cool. It would be nice to adapt the pattern matching that we use in Decent CI into our other builds.
run: cmake -DTEX_INTERACTION=batchmode -DDOCS_TESTING=ON .. | ||
|
||
- name: Add problem matcher | ||
run: echo "::add-matcher::.github/workflows/doc-problem-match.json" |
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.
👍
@@ -168,40 +168,6 @@ def find_multiply_defined_labels(root_dir, label): | |||
target = "\\label{" + label + "}" | |||
return find_locations(root_dir, target) | |||
|
|||
|
|||
def parse_warning(line, src_dir): |
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.
Right, this should be gone.
warns = [] | ||
m1 = LABEL_MULTIPLY_DEFINED_WARN.match(self._current_issue) | ||
m2 = HYPER_UNDEFINED_WARN.match(self._current_issue) | ||
if m1 is not None: |
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.
And so presumably this is where we would match other LaTeX warnings if we wanted.
btwxt/vendor/googletest | ||
btwxt/.gitmodules | ||
penumbra/vendor/googletest |
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.
👍
Thanks @nealkruis, merging this. For those developers out there who review doc changes, you will now see some LaTeX build issues pop up as Github Action Annotations, like on this set of build results: https://github.com/bigladder/EnergyPlus/actions/runs/279081457 |
Pull request overview
This PR:
Pull Request Author
Add to this list or remove from it as applicable. This is a simple templated set of guidelines.
Reviewer
This will not be exhaustively relevant to every PR.