Skip to content

Commit

Permalink
Add ignoring linkcheck (#758)
Browse files Browse the repository at this point in the history
Co-authored-by: Cody Baker <[email protected]>
  • Loading branch information
h-mayorquin and CodyCBakerPhD authored Feb 22, 2024
1 parent a4f9b75 commit bb3bfaa
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 18 deletions.
46 changes: 31 additions & 15 deletions .github/workflows/dailies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,48 @@ name: Daily workflows
on:
workflow_dispatch:
schedule:
- cron: "0 16 * * *" # Daily at noon EST
- cron: "0 16 * * *" # Daily at noon EST

jobs:

run-daily-tests:
uses: ./.github/workflows/testing.yml
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
S3_GIN_BUCKET: ${{ secrets.S3_GIN_BUCKET }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

run-daily-doc-link-checks:
uses: ./.github/workflows/test-external-links.yml

notify:
notify-test-failure:
runs-on: ubuntu-latest
needs: [run-daily-tests]
if: ${{ always() && needs.run-daily-tests.result == 'failure' }}
steps:
- uses: dawidd6/action-send-mail@v3
with:
server_address: smtp.gmail.com
server_port: 465
username: ${{ secrets.MAIL_USERNAME }}
password: ${{ secrets.MAIL_PASSWORD }}
subject: NeuroConv Daily Test Failure
to: ${{ secrets.DAILY_FAILURE_EMAIL_LIST }}
from: NeuroConv
body: "The daily test workflow failed, please check status at https://github.com/catalystneuro/neuroconv/actions/workflows/dailies.yml"

notify-link-check-failure:
runs-on: ubuntu-latest
needs: [run-daily-tests, run-daily-doc-link-checks]
if: ${{ always() && contains(needs.*.result, 'failure') }}
needs: [run-daily-doc-link-checks]
if: ${{ always() && needs.run-daily-doc-link-checks.result == 'failure' }}
steps:
- uses: dawidd6/action-send-mail@v3
with:
server_address: smtp.gmail.com
server_port: 465 # TSL
username: ${{ secrets.MAIL_USERNAME }}
password: ${{ secrets.MAIL_PASSWORD }}
subject: NeuroConv Daily Failure
to: ${{ secrets.DAILY_FAILURE_EMAIL_LIST }} # add more with commas, no separation
from: NeuroConv
body: "The daily workflow for the NWB Inspector failed: please check status at https://github.com/catalystneuro/neuroconv/actions/workflows/dailies.yml"
- uses: dawidd6/action-send-mail@v3
with:
server_address: smtp.gmail.com
server_port: 465
username: ${{ secrets.MAIL_USERNAME }}
password: ${{ secrets.MAIL_PASSWORD }}
subject: NeuroConv Daily Doc Link Check Failure
to: ${{ secrets.DAILY_FAILURE_EMAIL_LIST }}
from: NeuroConv
body: "The daily check for working links in the documentation failed, please check status at https://github.com/catalystneuro/neuroconv/actions/workflows/dailies.yml"
8 changes: 6 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# The name of an image file (within the static path) to use as favicon of the
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
# pixels large.
html_favicon = '_static/favicon.ico'
html_favicon = "_static/favicon.ico"

# These paths are either relative to html_static_path or fully qualified paths (eg. https://...)
# html_css_files = [
Expand All @@ -53,10 +53,14 @@
"icon": "fa-brands fa-github",
"type": "fontawesome",
},
]
],
}

linkcheck_anchors = False
linkcheck_ignore = [
"https://buzsakilab.com/wp/", # Ignoring because their ssl certificate is expired
r"https://stackoverflow\.com/.*", # The r is because of the regex, stackoverflow links are forbidden to bots
]

# --------------------------------------------------
# Extension configuration
Expand Down
3 changes: 2 additions & 1 deletion requirements-rtd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ sphinx_rtd_theme==1.0.0
readthedocs-sphinx-search==0.1.2
sphinx-toggleprompt==0.2.0
sphinx-copybutton==0.5.0
roiextractors
roiextractors # Needed for the API documentation
spikeinterface # Needed for the API documentation
pydata_sphinx_theme==0.12.0

0 comments on commit bb3bfaa

Please sign in to comment.