From 73761eda6d5324bac4327628124cde46e8b4d95e Mon Sep 17 00:00:00 2001 From: Francois Ferrand Date: Thu, 18 Apr 2024 15:05:22 +0200 Subject: [PATCH] Fix caching of python packages Issue: UTAPI-99 --- .github/workflows/tests.yaml | 12 +++--------- requirements.txt | 2 ++ 2 files changed, 5 insertions(+), 9 deletions(-) create mode 100644 requirements.txt diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 78abb43f..1a29e900 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -131,9 +131,7 @@ jobs: python-version: '3.9' cache: pip - name: Install python deps - run: | - pip install requests - pip install redis + run: pip install -r requirements.txt - name: install dependencies run: yarn install --frozen-lockfile --network-concurrency 1 - name: ${{ matrix.test.name }} @@ -222,9 +220,7 @@ jobs: python-version: '3.9' cache: pip - name: Install python deps - run: | - pip install requests - pip install redis + run: pip install -r requirements.txt - name: install dependencies run: yarn install --frozen-lockfile --network-concurrency 1 - name: Wait for warp10 for 60 seconds @@ -345,9 +341,7 @@ jobs: python-version: '3.9' cache: pip - name: Install python deps - run: | - pip install requests - pip install redis + run: pip install -r requirements.txt - name: install dependencies run: yarn install --frozen-lockfile --network-concurrency 1 - name: Wait for warp10 a little bit diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..d3bf589d --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +redis==5.0.3 +requests==2.31.0 \ No newline at end of file