From 677cec801ab5b8cb460d99e1bb4a7c3441518ce8 Mon Sep 17 00:00:00 2001 From: Rafael Vasquez Date: Wed, 10 Aug 2022 19:21:46 -0400 Subject: [PATCH] add verify workflow Signed-off-by: Rafael Vasquez --- .github/workflows/verify-links.yml | 38 ++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/verify-links.yml diff --git a/.github/workflows/verify-links.yml b/.github/workflows/verify-links.yml new file mode 100644 index 00000000..3b034a0a --- /dev/null +++ b/.github/workflows/verify-links.yml @@ -0,0 +1,38 @@ +# Copyright 2021 The MLX Contributors +# +# SPDX-License-Identifier: Apache-2.0 + +name: Verify Links + +on: + push: + branches: + - main + + tags: + - v* + + pull_request: + +jobs: + check-links: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.7] + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: pip install requests + + - name: Link check + run: | + ./tools/python/verify_doc_links.py +