From 2739d128a44a7a42053841663f716e7470423282 Mon Sep 17 00:00:00 2001 From: Rhet Turnbull Date: Sun, 30 Jun 2024 09:32:07 -0700 Subject: [PATCH] Updated tests for GH actions --- .github/workflows/python-package.yml | 2 +- tests/conftest.py | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 9c05bae..74ba8f1 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -16,7 +16,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10"] + python-version: ["3.10", "3.11", "3.12"] env: GITHUB_ACTION: 1 diff --git a/tests/conftest.py b/tests/conftest.py index cc0c279..15931c5 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -14,11 +14,12 @@ # how long to wait for metadata to be written to disk # if running in GitHub Actions, wait longer -SNOOZE_TIME = 0.5 if os.environ.get("GITHUB_ACTION") else 0.1 -# Finder comments need more time to be written to disk -FINDER_COMMENT_SNOOZE = 2.0 +GH_ACTION_SNOOZE = 10.0 +SNOOZE_TIME = GH_ACTION_SNOOZE if os.environ.get("GITHUB_ACTION") else 0.1 # some tests need a longer snooze time -LONG_SNOOZE = 10.0 if os.environ.get("GITHUB_ACTION") else 3.0 +LONG_SNOOZE = GH_ACTION_SNOOZE if os.environ.get("GITHUB_ACTION") else 3.0 +# Finder comments need more time to be written to disk +FINDER_COMMENT_SNOOZE = LONG_SNOOZE def snooze(seconds: float = SNOOZE_TIME) -> None: """Sleep for a bit to allow Finder to update metadata"""