diff --git a/.github/workflows/link_check.yml b/.github/workflows/link_check.yml index f923fce4c..f5c02f2c9 100644 --- a/.github/workflows/link_check.yml +++ b/.github/workflows/link_check.yml @@ -49,18 +49,18 @@ jobs: poetry install --with test poetry run pip install -U pytest pytest-check-links langsmith langchain GitPython - - name: Check links in notebooks - env: - LANGCHAIN_API_KEY: test - run: | - if [ "${{ github.event_name }}" != "schedule" ]; then - git fetch origin main - CHANGED_FILES=$(git diff --name-only origin/main | grep '\.ipynb$') - if [ -n "$CHANGED_FILES" ]; then - poetry run pytest -o python_files=non_python_only --check-links --check-links-ignore "https://(api|web)\.smith\.langchain\.com/.*" --check-links-ignore "https://x.com/.*" $CHANGED_FILES - else - echo "No notebook files changed." - fi - else - poetry run pytest -o python_files=non_python_only --check-links --ignore="*.py" -k .ipynb --check-links-ignore "https://(api|web)\.smith\.langchain\.com/.*" --check-links-ignore "https://x.com/.*" ./examples - fi + # - name: Check links in notebooks + # env: + # LANGCHAIN_API_KEY: test + # run: | + # if [ "${{ github.event_name }}" != "schedule" ]; then + # git fetch origin main + # CHANGED_FILES=$(git diff --name-only origin/main | grep '\.ipynb$') + # if [ -n "$CHANGED_FILES" ]; then + # poetry run pytest -o python_files=non_python_only --check-links --check-links-ignore "https://(api|web)\.smith\.langchain\.com/.*" --check-links-ignore "https://x.com/.*" $CHANGED_FILES + # else + # echo "No notebook files changed." + # fi + # else + # poetry run pytest -o python_files=non_python_only --check-links --ignore="*.py" -k .ipynb --check-links-ignore "https://(api|web)\.smith\.langchain\.com/.*" --check-links-ignore "https://x.com/.*" ./examples + # fi