diff --git a/.github/markdown-links-config.json b/.github/markdown-links-config.json new file mode 100644 index 0000000..69417e0 --- /dev/null +++ b/.github/markdown-links-config.json @@ -0,0 +1,30 @@ +{ + "ignorePatterns": [ + { + "pattern": "^#" + }, + { + "pattern": "^https://github.com/Lightning-AI/LitModels/pull/" + }, + { + "pattern": "^https://codecov.io/gh/Lightning-AI/LitModels/graph/badge.svg" + } + ], + "httpHeaders": [ + { + "urls": [ + "https://github.com/", + "https://guides.github.com/", + "https://help.github.com/", + "https://docs.github.com/" + ], + "headers": { + "Accept-Encoding": "zstd, br, gzip, deflate" + } + } + ], + "timeout": "25s", + "retryOn429": true, + "retryCount": 5, + "fallbackRetryDelay": "20s" +} diff --git a/.github/workflows/ci-checks.yml b/.github/workflows/ci-checks.yml index 0f48a9b..6280521 100644 --- a/.github/workflows/ci-checks.yml +++ b/.github/workflows/ci-checks.yml @@ -37,7 +37,14 @@ jobs: "python-version": ["3.10", "3.12"] } -# check-docs: -# uses: Lightning-AI/utilities/.github/workflows/check-docs.yml@main -# with: -# requirements-file: "_requirements/_docs.txt" + # check-docs: + # uses: Lightning-AI/utilities/.github/workflows/check-docs.yml@main + # with: + # requirements-file: "_requirements/_docs.txt" + + check-md-links: + uses: Lightning-AI/utilities/.github/workflows/check-md-links.yml@86fe1b20b4609835ba9e8c8739cd39707ba76868 # v0.15.3 + with: + config-file: ".github/markdown-links-config.json" + base-branch: "main" + force-check-all: "yes"