From 7fa3828cb6d46fb0a0d390b187fc6f9c6dcc4b5f Mon Sep 17 00:00:00 2001 From: msquared Date: Sat, 11 Oct 2025 20:29:04 +0200 Subject: [PATCH 1/3] add unit tests github action --- .github/workflows/unit-tests.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/unit-tests.yml diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml new file mode 100644 index 0000000..8d68290 --- /dev/null +++ b/.github/workflows/unit-tests.yml @@ -0,0 +1,29 @@ +name: Unit Tests + +on: + push: + branches: [main, develop] + pull_request: + branches: [main] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v5 + + - name: Set up Python + uses: actions/setup-python@v6 + with: + python-version: "3.13" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + pip install pytest + + - name: Run pytest + run: pytest -v --maxfail=1 --disable-warnings From 8a591d39e3dc05cb85ce4d862a5c0d2a9db02990 Mon Sep 17 00:00:00 2001 From: msquared Date: Sat, 11 Oct 2025 20:30:55 +0200 Subject: [PATCH 2/3] extend actions for push and PR to develop --- .github/workflows/unit-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 8d68290..6b54e50 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -4,7 +4,7 @@ on: push: branches: [main, develop] pull_request: - branches: [main] + branches: [main, develop] jobs: test: From 04923077e64bcd65898badc2526b12fdcfb2931e Mon Sep 17 00:00:00 2001 From: msquared Date: Sat, 11 Oct 2025 20:46:22 +0200 Subject: [PATCH 3/3] Add httpx dependency to fix action tests --- requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index d3a03b4..4847cfb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,5 +5,5 @@ pandas==2.2.3 joblib==1.4.2 fastapi==0.118.0 pydantic==2.11.9 - - +httpx==0.28.1 +pytest==8.4.2 \ No newline at end of file