From 5afd9aaff57a3718d6058db2af040b37fbe98c21 Mon Sep 17 00:00:00 2001 From: Sylwester Arabas Date: Tue, 8 Jul 2025 12:29:27 +0200 Subject: [PATCH] CI: add job checking URLs in docstrings, docs, READMEs, etc --- .github/workflows/urlcheck.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/urlcheck.yml diff --git a/.github/workflows/urlcheck.yml b/.github/workflows/urlcheck.yml new file mode 100644 index 0000000..3c16d59 --- /dev/null +++ b/.github/workflows/urlcheck.yml @@ -0,0 +1,25 @@ +name: urlcheck + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + schedule: + - cron: '0 13 * * 4' + +jobs: + url-check: + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v4.1.6 + - uses: urlstechie/urlchecker-action@master + with: + file_types: .md,.py,.yaml,.yml,.toml,.cff,.txt,.ipynb + print_all: false + verbose: true + timeout: 7 + retry_count: 3 + exclude_urls: https://www.gnu.org/licenses/gpl-3.0.html + exclude_patterns: http://purl.org,http://www.w3.org + exclude_files: .github/workflows/urlcheck.yml