Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,31 @@ jobs:

- name: Test with pytest
run: pytest -s -v tests


linkcheck:
runs-on: ubuntu-latest
env:
PYTHON: "3.9"

steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ env.PYTHON }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt -r requirements-dev.txt

- name: List installed packages
run: pip list

- name: Check links
run: make linkcheck
10 changes: 0 additions & 10 deletions tests/test_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,6 @@ def test_images(self):
# "%s"%(latex_path)])
# assert check == 0

def test_linkcheck(self):
doctrees_path = os.path.sep.join(self.path_to_docs.split(os.path.sep) + ['_build']+['doctrees'])
link_path = os.path.sep.join(self.path_to_docs.split(os.path.sep) + ['_build'])

check = subprocess.call(["sphinx-build", "-nW", "-b", "linkcheck", "-d",
"%s"%(doctrees_path),
"%s"%(self.path_to_docs),
"%s"%(link_path)])
assert check == 0


if __name__ == '__main__':
unittest.main()
Loading