-
-
Notifications
You must be signed in to change notification settings - Fork 559
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
Added a link checker step in the doctests jobs using both Lychee and … #4686
base: develop
Are you sure you want to change the base?
Conversation
…Sphinx parallelly
34efcfa
to
ff8f148
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #4686 +/- ##
========================================
Coverage 99.22% 99.22%
========================================
Files 303 303
Lines 23070 23077 +7
========================================
+ Hits 22891 22898 +7
Misses 179 179 ☔ View full report in Codecov by Sentry. |
Co-authored-by: Eric G. Kratz <[email protected]>
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.
I still think this should be part of the doctests or docs workflow instead of with lychee. Lychee is really unstable so most people will not even look at the failure
can u kindly be specific , cause it was asked to run Lychee and and Sphinx parallelly |
Sure, what Eric meant was to move the job you added + the current docs-related tests in |
Understood @agriyakhetarpal |
6fdec67
to
404b928
Compare
Sorry – I think some of my requests for changes might have overlapped with Eric's. Please ignore the ones that have already been done. |
@RohitP2005 Please do not force push after the review has started. It makes it extremely hard to track changes |
Sorry for the trouble eric, I will make a commit including the changes as u requested |
Changes I Made:
I hope this satisfies the changes u both requested, apologies as i was confused with instruction given earlier |
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.
Just two more changes, thanks for taking this up, @RohitP2005!
@all-contributors please add @RohitP2005 for infra |
I've put up a pull request to add @RohitP2005! 🎉 |
Please feel free to fix the failing links in this PR or in a quick follow-up, I have no preference. |
Looking at the failures, it looks like there might be some stuff to fix before we start using this:
It seemed like those links worked when I tried them. Some of the research paper links fail:
We should probably have fixes in place for those before we merge this, otherwise all PRs will be marked as failing |
Yeah, just saw the first ones as well, unsure how to fix those... In the meantime, we ignore all links from ScienceDirect with Lychee, we can use a similar option in |
I have fixed those corrections and made a commit. |
Sphinx Link Checker Integration in CI
Description
This PR introduces a fix to run the Sphinx link checker in parallel with Lychee during the CI pipeline. This resolves the issue of missing or broken links not being detected while ensuring proper integration with the existing workflow. The Sphinx link checker builder has been added to the CI process to ensure links are checked effectively, with broken links automatically identified and flagged.
Fixes: #3387
Type of change
Key checklist:
$ pre-commit run
(or$ nox -s pre-commit
) (see CONTRIBUTING.md for how to set this up to run automatically when committing locally)$ python -m pytest
(or$ nox -s tests
)$ python -m pytest --doctest-plus src
(or$ nox -s doctests
)Further checks: