diff --git a/.github/workflows/test_fast.yml b/.github/workflows/test_fast.yml index 3234b501a50..1bbf67b699d 100644 --- a/.github/workflows/test_fast.yml +++ b/.github/workflows/test_fast.yml @@ -116,4 +116,4 @@ jobs: - name: Linkcheck if: startsWith(matrix.python-version, '3.10') - run: pytest -m linkcheck tests/unit + run: pytest -m linkcheck --dist=load tests/unit diff --git a/tests/unit/test_links.py b/tests/unit/test_links.py index 3e07a3af495..9f8a228ad68 100644 --- a/tests/unit/test_links.py +++ b/tests/unit/test_links.py @@ -54,6 +54,11 @@ def get_links(): @pytest.mark.linkcheck @pytest.mark.parametrize('link', get_links()) def test_embedded_url(link): + """Check links in the source code are not broken. + + TIP: use `--dist=load` when running pytest to enable parametrized tests + to run in parallel + """ try: urllib.request.urlopen(link).getcode() except urllib.error.HTTPError: