From ac22faeab32d49033476a0c58e0f400e662039c0 Mon Sep 17 00:00:00 2001 From: Jonas Maison Date: Fri, 21 Jun 2024 08:37:41 +0200 Subject: [PATCH] Update --- .github/workflows/ci.yml | 26 ++++++++++++++----- .lycheeignore | 3 --- .../scripts => scripts}/update_readme_tree.py | 0 3 files changed, 20 insertions(+), 9 deletions(-) rename {.github/scripts => scripts}/update_readme_tree.py (100%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 318f04b..923a331 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,11 +21,11 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.12" - name: Run script run: | - python ./.github/scripts/update_readme_tree.py + python ./scripts/update_readme_tree.py - name: Setup git config run: | @@ -50,7 +50,7 @@ jobs: ref: master-pub - uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.12" - uses: pre-commit/action@v3.0.1 link-checker: @@ -61,9 +61,23 @@ jobs: with: ref: master-pub - - name: Link Checker + - name: Restore lychee cache + id: restore-cache + uses: actions/cache/restore@v4 + with: + path: .lycheecache + key: cache-lychee-${{ github.sha }} + restore-keys: cache-lychee- + + - name: Check links id: lychee uses: lycheeverse/lychee-action@v1.10.0 with: - args: --verbose --no-progress './**/*.md' './**/*.html' --insecure --exclude-all-private - fail: true + args: --verbose --no-progress './**/*.md' './**/*.html' --insecure --exclude-all-private --cache --suggest --archive wayback --github-token ${{ secrets.GITHUB_TOKEN }} --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" + + - name: Save lychee cache + uses: actions/cache/save@v4 + if: always() + with: + path: .lycheecache + key: ${{ steps.restore-cache.outputs.cache-primary-key }} diff --git a/.lycheeignore b/.lycheeignore index 852154c..39beb28 100644 --- a/.lycheeignore +++ b/.lycheeignore @@ -1,4 +1 @@ https://pastepixel.com/image/....png -http://eturnbull.ca/pythonlibs/ -https://twitter.com/* -https://www.lfd.uci.edu/~gohlke/pythonlibs/ diff --git a/.github/scripts/update_readme_tree.py b/scripts/update_readme_tree.py similarity index 100% rename from .github/scripts/update_readme_tree.py rename to scripts/update_readme_tree.py