Skip to content

Commit 2739d12

Browse files
committed
Updated tests for GH actions
1 parent 7cd2a49 commit 2739d12

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
python-version: ["3.8", "3.9", "3.10"]
19+
python-version: ["3.10", "3.11", "3.12"]
2020

2121
env:
2222
GITHUB_ACTION: 1

tests/conftest.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@
1414

1515
# how long to wait for metadata to be written to disk
1616
# if running in GitHub Actions, wait longer
17-
SNOOZE_TIME = 0.5 if os.environ.get("GITHUB_ACTION") else 0.1
18-
# Finder comments need more time to be written to disk
19-
FINDER_COMMENT_SNOOZE = 2.0
17+
GH_ACTION_SNOOZE = 10.0
18+
SNOOZE_TIME = GH_ACTION_SNOOZE if os.environ.get("GITHUB_ACTION") else 0.1
2019
# some tests need a longer snooze time
21-
LONG_SNOOZE = 10.0 if os.environ.get("GITHUB_ACTION") else 3.0
20+
LONG_SNOOZE = GH_ACTION_SNOOZE if os.environ.get("GITHUB_ACTION") else 3.0
21+
# Finder comments need more time to be written to disk
22+
FINDER_COMMENT_SNOOZE = LONG_SNOOZE
2223

2324
def snooze(seconds: float = SNOOZE_TIME) -> None:
2425
"""Sleep for a bit to allow Finder to update metadata"""

0 commit comments

Comments
 (0)