scientific-python / tools.scientific-python.org

https://tools.scientific-python.org/
BSD 3-Clause "New" or "Revised" License
3 stars 5 forks source link

BUG: add linkchecking CI #64

Open bsipocz opened 1 week ago

bsipocz commented 1 week ago

Someone pointed out a broken link (see https://github.com/scientific-python/tools.scientific-python.org/pull/63), so apparently the netlify linkchecker doesn't work.

This came up in the specs repo, but only on the theoretical level, thus I open this issue here as we actually had broken links in this repo.

lagru commented 1 week ago

I've had good success with using lychee to cook up my own non-GitHub CI solution for this:

lychee --dump ${URL}/sitemap.xml | grep "${URL}" | sort > links.txt
cat links.txt
cat links.txt | xargs lychee -v --no-progress --max-concurrency 2 --include-fragments

But they also provide a GitHub action for it.