-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub action to verify doc links (#357)
Signed-off-by: Rafael Vasquez <[email protected]>
- Loading branch information
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||