Skip to content

Commit 5277fef

Browse files
committed
fix runner
1 parent 1d97e47 commit 5277fef

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ jobs:
3030
shell: bash
3131

3232
- name: Run tests
33-
run: hatch run dev:test
33+
run: hatch test -v

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ dependencies = [
4141
"isort",
4242
"pytest",
4343
"pyupgrade",
44-
"aqt",
4544
]
4645
system-packages = true
4746
python = "3.9"
@@ -89,6 +88,7 @@ dependencies = [
8988
"pytest",
9089
"pytest-asyncio",
9190
"pytest-xdist",
91+
"aqt",
9292
]
9393
system-packages = true
9494
parallel = true

tests/conftest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Copyright: Ajatt-Tools and contributors; https://github.com/Ajatt-Tools
22
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
33

4+
import os
5+
6+
os.environ.setdefault("QT_QPA_PLATFORM", "offscreen")
7+
48
import pytest
59
from aqt.qt import QApplication
610

0 commit comments

Comments
 (0)