Skip to content

Commit 4090cd7

Browse files
committed
ci: Run unit / integration tests as separate jobs
Signed-off-by: Phoevos Kalemkeris <[email protected]>
1 parent 51d9ac5 commit 4090cd7

File tree

1 file changed

+28
-4
lines changed

1 file changed

+28
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
pull_request:
88

99
jobs:
10-
test:
10+
unit:
1111
runs-on: ubuntu-latest
1212

1313
steps:
@@ -27,6 +27,30 @@ jobs:
2727
run: |
2828
poetry install --with dev
2929
30-
- name: Run tests
31-
run:
32-
poetry run pytest
30+
- name: Run unit tests
31+
run: |
32+
poetry run pytest tests/unit
33+
34+
integration:
35+
runs-on: ubuntu-latest
36+
37+
steps:
38+
- name: Checkout code
39+
uses: actions/checkout@v4
40+
41+
- name: Set up Python
42+
uses: actions/setup-python@v5
43+
with:
44+
python-version: "3.12"
45+
46+
- name: Install Poetry
47+
run: |
48+
curl -sSL https://install.python-poetry.org | python3 -
49+
50+
- name: Install dependencies
51+
run: |
52+
poetry install --with dev
53+
54+
- name: Run integration tests
55+
run: |
56+
poetry run pytest tests/integration -s

0 commit comments

Comments
 (0)