Skip to content

Commit

Permalink
Another solution to not use the cache
Browse files Browse the repository at this point in the history
Signed-off-by: Alexis <[email protected]>
  • Loading branch information
DarkaMaul committed Nov 4, 2024
1 parent 6200f1c commit 38d8fbc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions src/rfc3161_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ def add_missing_dlls():

if openssl_dir := os.environ.get("OPENSSL_DIR"):
os.add_dll_directory(openssl_dir)
print(f"Dlls : {list(Path(openssl_dir).glob('*.dll'))}")

python_dir = Path(sys.executable).parent
print(f"Dlls : {list(Path(python_dir).glob('*.dll'))}")
os.add_dll_directory(python_dir.as_posix())

add_missing_dlls()
Expand Down

0 comments on commit 38d8fbc

Please sign in to comment.