From 2207379d7cc83043de2d73d03829a98ea52e1d19 Mon Sep 17 00:00:00 2001 From: Martin Husbyn Date: Fri, 6 Mar 2026 16:20:50 +0000 Subject: [PATCH 1/2] fix(deps): add pydantic to requirements.txt Was already in setup.py install_requires but missing from requirements.txt, causing CI autodoc import failures. Co-Authored-By: Claude Opus 4.6 --- requirements.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 616a633..4bcf382 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ kirjava==0.4.0 tqdm -httpx==0.28.1 \ No newline at end of file +httpx==0.28.1 +pydantic>=2,<3 \ No newline at end of file From 224fa9cb9ac82ff62f845ea10d8621cf32d6c280 Mon Sep 17 00:00:00 2001 From: Martin Husbyn Date: Fri, 6 Mar 2026 16:26:45 +0000 Subject: [PATCH 2/2] ci: add unit test workflow for all branch pushes Runs pytest against tests/unit/ on every push to ensure tests pass before merging. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/tests.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/tests.yaml diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 0000000..d5b03e2 --- /dev/null +++ b/.github/workflows/tests.yaml @@ -0,0 +1,19 @@ +name: Tests + +on: + push: + +jobs: + unit-tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v6 + with: + python-version: "3.13" + - name: Install dependencies + run: | + pip install . + pip install -r requirements-dev.txt + - name: Run unit tests + run: pytest tests/unit/