Skip to content

Commit fa03b3e

Browse files
committed
update tox.ini and test.yml to use pytest
pytest was added to pyright section of the test.yml becasue pyright requires pytest to be present during type-checking of test files.
1 parent 97bd3be commit fa03b3e

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
- name: Install dependencies
6565
run: |
6666
python -m pip install --upgrade pip
67-
pip install pyright
67+
pip install pyright pytest
6868
pip install -e .
6969
- name: Run pyright
7070
run: pyright

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,5 @@ lint.ignore = [
5252
dev = [
5353
"pytest>=8.4.2",
5454
"tox>=4.30.3",
55+
"tzdata; sys_platform == 'win32'",
5556
]

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ python =
1515
deps =
1616
# Install tzdata for support zoneinfo on Windows
1717
tzdata; platform_system == "Windows"
18+
pytest
1819
commands =
19-
python -m unittest discover tests -v
20+
pytest

0 commit comments

Comments
 (0)