Skip to content

Commit c959134

Browse files
authored
Merge pull request #30 from oheyek/13-automatic-unit-tests
feat: add CI/CD unit tests
2 parents 7098fb1 + e31b9ae commit c959134

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/tests.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Tests
2+
3+
on:
4+
pull_request:
5+
branches: [dev]
6+
workflow_call:
7+
workflow_dispatch:
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Python 3.12
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: 3.12
21+
22+
- name: Install UV
23+
uses: astral-sh/setup-uv@v2
24+
with:
25+
enable-cache: true
26+
27+
- name: Install dependencies & test tools
28+
run: |
29+
uv run pip install -r requirements.txt
30+
uv run pip install pytest
31+
32+
- name: Run tests
33+
run: uv run pytest src/tests/ -v --tb=short

0 commit comments

Comments
 (0)