Skip to content

Commit 50a617a

Browse files
committed
refactor: split up tests into integration and unit tests
1 parent 9a07c5f commit 50a617a

File tree

5 files changed

+30
-2
lines changed

5 files changed

+30
-2
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
- name: Run Ruff
6161
run: uv run ruff format --check
6262

63-
test:
63+
unit-tests:
6464
runs-on: ${{ matrix.os }}
6565
strategy:
6666
matrix:
@@ -81,4 +81,27 @@ jobs:
8181
- name: Install the project
8282
run: uv sync --locked --all-extras --dev
8383
- name: Run Ruff
84-
run: uv run pytest --cov=debmagic
84+
run: uv run pytest tests/unit --cov=debmagic
85+
86+
integration-tests:
87+
runs-on: ${{ matrix.os }}
88+
strategy:
89+
matrix:
90+
python-version:
91+
- "3.12"
92+
- "3.13"
93+
os: [ubuntu-latest]
94+
steps:
95+
- uses: actions/checkout@v5
96+
- name: Set up Python
97+
uses: actions/setup-python@v6
98+
with:
99+
python-version: "3.12"
100+
- name: Install uv
101+
uses: astral-sh/setup-uv@v6
102+
with:
103+
enable-cache: true
104+
- name: Install the project
105+
run: uv sync --locked --all-extras --dev
106+
- name: Run Ruff
107+
run: uv run pytest tests/integration
File renamed without changes.
File renamed without changes.
File renamed without changes.

tests/unit/test_basic.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
def test_v0_imports():
2+
from debmagic.v0 import dh
3+
4+
preset_instance = dh.Preset()
5+
assert preset_instance is not None

0 commit comments

Comments
 (0)