Skip to content

Commit

Permalink
Only run test_development_guidelines_matches_ci on editable install (
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesbluca committed Mar 22, 2023
1 parent 52372bb commit 65b49ce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dask/tests/test_docs.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
from pathlib import Path

import pytest


def test_development_guidelines_matches_ci():
"""When the environment.yaml changes in CI, make sure to change it in the docs as well"""
root_dir = Path(__file__).parent.parent.parent

if not (root_dir / ".github" / "workflows").exists():
pytest.skip("Test can only be run on an editable install")

development_doc_file = root_dir / "docs" / "source" / "develop.rst"
additional_ci_file = root_dir / ".github" / "workflows" / "additional.yml"
upstream_ci_file = root_dir / ".github" / "workflows" / "upstream.yml"
Expand Down

0 comments on commit 65b49ce

Please sign in to comment.