From 80ddc4e0e699f2d681f269ba320be8eb618d4fd9 Mon Sep 17 00:00:00 2001 From: Alexis Date: Mon, 4 Nov 2024 17:42:00 +0100 Subject: [PATCH] Another solution to not use the cache Signed-off-by: Alexis --- .github/workflows/tests.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4249767..ffe7fc9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -78,21 +78,24 @@ jobs: components: rustfmt toolchain: 1.81.0 -# - name: Setup env variables -# shell: bash -# run: | -# UV_PYTHON_PATH=$(uv python dir) -# export INSTALLED_PYTHON="$(find $UV_PYTHON_PATH -type d -maxdepth 1 -name '*${{ matrix.python }}*')" -# echo "$INSTALLED_PYTHON" >> $GITHUB_PATH -# echo "PYO3_PYTHON=$INSTALLED_PYTHON\python.exe" >> $GITHUB_ENV + - name: Setup env variables + shell: bash + run: | + UV_PYTHON_PATH=$(uv python dir) + export INSTALLED_PYTHON="$(find $UV_PYTHON_PATH -type d -maxdepth 1 -name '*${{ matrix.python }}*')" + # echo "$INSTALLED_PYTHON" >> $GITHUB_PATH + echo "PYO3_PYTHON=$INSTALLED_PYTHON\python.exe" >> $GITHUB_ENV - name: test run: | - uv venv - . .venv/Scripts/activate && uv pip install -n -e '.[test]' && pytest --cov=rfc3161_client + $PYO3_PYTHON -m venv env-local + . env-local/Scripts/activate + pip install -e '.[test]' + pytest --cov=rfc3161_client # make test INSTALL_EXTRA=test shell: bash env: OPENSSL_DIR: "C:\\OpenSSL-Win64" OPENSSL_LIB_DIR: "C:\\OpenSSL-Win64\\lib\\VC\\x64\\MD" OPENSSL_NO_VENDOR: 1 + UV_NO_CACHE: true