diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml new file mode 100644 index 0000000..6b54e50 --- /dev/null +++ b/.github/workflows/unit-tests.yml @@ -0,0 +1,29 @@ +name: Unit Tests + +on: + push: + branches: [main, develop] + pull_request: + branches: [main, develop] + +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 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