Skip to content

Commit e77b341

Browse files
authored
Merge pull request #142 from mokagio/macos-ci
Add macOS to CI matrix
2 parents abba178 + 19e602e commit e77b341

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ${{ matrix.os }}
99
strategy:
1010
matrix:
11-
os: [ubuntu-latest, windows-latest]
11+
os: [ubuntu-latest, windows-latest, macos-latest]
1212
python-version: ['3.9', '3.10', '3.11', '3.12']
1313

1414
steps:

tests/test_countdown.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ def test_basic(self):
1717
test_cd.timeout = timedelta(seconds=0.1)
1818
self.assertEqual(test_cd.timeout.total_seconds(), timedelta(seconds=0.1).total_seconds())
1919
self.assertEqual(test_cd.timeout_ms, 100)
20+
# Updating timeout changes the configuration; reset() explicitly restarts the countdown.
21+
test_cd.reset()
2022
self.assertTrue(test_cd.busy())
2123
self.assertFalse(test_cd.timed_out())
2224
time.sleep(0.1)

0 commit comments

Comments
 (0)