Skip to content

Commit

Permalink
Adjust which jobs run in CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
ubernostrum committed Sep 26, 2024
1 parent f1b1cfb commit cc1d2a1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@
# Location of word list.
spelling_word_list_filename = "spelling_wordlist.txt"

# The documentation does not include contributor names, so we skip this because it's
# flaky about needing to scan commit history.
spelling_ignore_contributor_names = False

# Doctest configuration.
doctest_global_setup = "from webcolors import *"
doctest_default_flags = (
Expand Down
6 changes: 6 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ def tests_definitions(session: nox.Session) -> None:
Run the full color definitions test suite (requires an internet connection).
"""
if IS_CI:
session.skip("Release tests do not run in CI.")
session.install("pytest", "bs4", "html5lib", "requests", ".[tests]")
session.run(f"python{session.python}", "-I", "tests/definitions.py")
clean()
Expand All @@ -117,6 +119,8 @@ def tests_full_colors(session: nox.Session) -> None:
Run the full color conversion test suite (slow/CPU-intensive).
"""
if IS_CI:
session.skip("Release tests do not run in CI.")
session.install(".[tests]")
session.run(f"python{session.python}", "-I", "tests/full_colors.py")
clean()
Expand Down Expand Up @@ -385,6 +389,8 @@ def package_manifest(session: nox.Session) -> None:
Check that the set of files in the package matches the set under version control.
"""
if IS_CI:
session.skip("check-manifest already run by earlier CI steps.")
session.install("check-manifest")
session.run(f"python{session.python}", "-Im", "check_manifest", "--version")
session.run(f"python{session.python}", "-Im", "check_manifest", "--verbose")
Expand Down

0 comments on commit cc1d2a1

Please sign in to comment.