From bcfe623e04fd23180e229e5b4975a74883bf9b93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Diot?= Date: Thu, 4 Jan 2024 15:37:06 +0000 Subject: [PATCH] Update how the python deps are installed in linux tests (core & ui) --- .github/workflows/test-core-linux.yml | 4 +++- .github/workflows/tests-ui-linux.yml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-core-linux.yml b/.github/workflows/test-core-linux.yml index 9ae0c4719..a8c190d6f 100644 --- a/.github/workflows/test-core-linux.yml +++ b/.github/workflows/test-core-linux.yml @@ -95,7 +95,9 @@ jobs: run: sudo apt install -fy /tmp/bunkerweb.deb - name: Run tests run: | + export MAKEFLAGS="-j $(nproc)" + pip install --no-cache-dir --ignore-installed --require-hashes -r src/deps/requirements-deps.txt + MAKEFLAGS="-j $(nproc)" find tests/core -name "requirements.txt" -exec pip install --no-cache-dir --require-hashes --no-deps -r {} \; cd ./tests/core/${{ inputs.TEST }} - MAKEFLAGS="-j $(nproc)" find . -name "requirements.txt" -exec pip install --no-cache-dir --require-hashes --no-deps -r {} \; sudo truncate -s 0 /var/log/bunkerweb/error.log ./test.sh "linux" diff --git a/.github/workflows/tests-ui-linux.yml b/.github/workflows/tests-ui-linux.yml index 787ef81ed..8b59645d4 100644 --- a/.github/workflows/tests-ui-linux.yml +++ b/.github/workflows/tests-ui-linux.yml @@ -94,8 +94,10 @@ jobs: sudo chmod 777 /etc/bunkerweb/variables.env /etc/bunkerweb/ui.env - name: Run tests run: | + export MAKEFLAGS="-j $(nproc)" + pip install --no-cache-dir --ignore-installed --require-hashes -r src/deps/requirements-deps.txt + pip install --no-cache-dir --require-hashes -r tests/ui/requirements.txt cd ./tests/ui - MAKEFLAGS="-j $(nproc)" find . -name "requirements.txt" -exec pip install --no-cache-dir --require-hashes --no-deps -r {} \; touch test.txt zip test.zip test.txt rm test.txt