Browse Source

Prime link cache by ignoring changelog

This is an attempt to work around the GitHub throttling that happens from all the PR links in the changelog.
Jason Grout 4 years ago
parent
commit
e76cf90c71
2 changed files with 2 additions and 2 deletions
  1. 1 1
      .github/workflows/linuxtests.yml
  2. 1 1
      scripts/ci_script.sh

+ 1 - 1
.github/workflows/linuxtests.yml

@@ -67,7 +67,7 @@ jobs:
         if: ${{ matrix.group == 'linkcheck' }}
         with:
           path: ~/.cache/pytest-link-check
-          key: ${{ runner.os }}-linkcheck-${{ hashFiles('**/*.rst') }}
+          key: ${{ runner.os }}-linkcheck-${{ hashFiles('**/*.rst') }}-nochangelog
           restore-keys: |
             ${{ runner.os }}-linkcheck-
 

+ 1 - 1
scripts/ci_script.sh

@@ -67,7 +67,7 @@ if [[ $GROUP == linkcheck ]]; then
     # Expire links after a week
     LINKS_EXPIRE=604800
     args="--check-links --check-links-cache --check-links-cache-expire-after ${LINKS_EXPIRE} --check-links-cache-name ${CACHE_DIR}/cache"
-    args="--ignore docs/build/html/genindex.html --ignore docs/build/html/search.html ${args}"
+    args="--ignore docs/build/html/genindex.html --ignore docs/build/html/search.html --ignore docs/build/html/api --ignore docs/build/html/getting_started/changelog.html ${args}"
     py.test $args --links-ext .html -k .html docs/build/html || py.test $args --links-ext .html -k .html --lf docs/build/html
 
     # Run the link check on md files - allow for a link to fail once (--lf means only run last failed)