From 6f0b2b1e5407deda5b508f97bcdc0869b7439b60 Mon Sep 17 00:00:00 2001 From: Andrey Velichkevich Date: Tue, 28 Sep 2021 17:49:10 +0100 Subject: [PATCH] Add Python test requirements file (#1684) --- .github/workflows/test-python.yaml | 4 +--- test/unit/v1beta1/requirements.txt | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 test/unit/v1beta1/requirements.txt diff --git a/.github/workflows/test-python.yaml b/.github/workflows/test-python.yaml index f32d4c14187..da883afa2d1 100644 --- a/.github/workflows/test-python.yaml +++ b/.github/workflows/test-python.yaml @@ -20,8 +20,7 @@ jobs: - name: Install Packages run: | - pip install grpcio-testing==1.40.0 - pip install pytest==5.1.2 + pip install -r test/unit/v1beta1/requirements.txt pip install -r cmd/suggestion/chocolate/v1beta1/requirements.txt pip install -r cmd/suggestion/hyperopt/v1beta1/requirements.txt @@ -36,6 +35,5 @@ jobs: - name: Run Python test run: | export PYTHONPATH=$(pwd):$(pwd)/pkg/apis/manager/v1beta1/python:$(pwd)/pkg/apis/manager/health/python - echo $PYTHONPATH pytest ./test/unit/v1beta1/suggestion pytest ./test/unit/v1beta1/earlystopping diff --git a/test/unit/v1beta1/requirements.txt b/test/unit/v1beta1/requirements.txt new file mode 100644 index 00000000000..44ba9b10fa4 --- /dev/null +++ b/test/unit/v1beta1/requirements.txt @@ -0,0 +1,2 @@ +grpcio-testing==1.40.0 +pytest==5.1.2