diff --git a/.github/workflows/python-ci.yml b/.github/workflows/python-ci.yml index 9b8ff7b..8142826 100644 --- a/.github/workflows/python-ci.yml +++ b/.github/workflows/python-ci.yml @@ -9,7 +9,7 @@ on: jobs: build-and-run-pytest: - + runs-on: ubuntu-latest steps: @@ -26,7 +26,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip cython wheel - pip install -r requirements.txt + pip install -r tests/requirements.txt # 4. Build test image - name: Build test Docker image diff --git a/Dockerfile b/Dockerfile index ce5bbb7..52e8091 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.10-bookworm +FROM python:3.10-slim-bookworm # Copy and install requirements COPY requirements.txt requirements.txt diff --git a/requirements.txt b/requirements.txt index ce96489..6378caf 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ # Some example packages -pandas -numpy -seaborn +# pandas +# numpy +# seaborn # API-related packages fastapi diff --git a/tests/Dockerfile.test b/tests/Dockerfile.test index c1bdd15..4a39c81 100644 --- a/tests/Dockerfile.test +++ b/tests/Dockerfile.test @@ -1,4 +1,4 @@ -FROM python:3.10-bookworm +FROM python:3.10-slim-bookworm # Copy and install requirements COPY requirements.txt requirements.txt diff --git a/tests/requirements.txt b/tests/requirements.txt new file mode 100644 index 0000000..541f56e --- /dev/null +++ b/tests/requirements.txt @@ -0,0 +1,3 @@ +# Testing packages +requests +pytest