Skip to content

Commit 24f5ad4

Browse files
committed
Try workaround for windows
1 parent 804f46d commit 24f5ad4

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ jobs:
125125
uv-dependency-install-flags: "-v --reinstall-package example-fgen-basic -Ccompile-args='-v' --all-extras --group tests "
126126
- name: Run tests
127127
run: |
128+
echo $CI
129+
ls C:\ProgramData\mingw64\mingw64\bin
128130
COV_DIR=`uv run --no-sync python -c 'from pathlib import Path; import example_fgen_basic; print(Path(example_fgen_basic.__file__).parent)'`
129131
uv run --no-sync pytest -r a -v tests src --doctest-modules --doctest-report ndiff --cov=${COV_DIR} --cov-report=term-missing --cov-report=xml
130132
uv run --no-sync coverage report

tests/conftest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@
33
44
See https://docs.pytest.org/en/7.1.x/reference/fixtures.html#conftest-py-sharing-fixtures-across-multiple-files
55
"""
6+
7+
import os
8+
import sys
9+
10+
if os.environ["CI"] == "true" and sys.platform() == "win32":
11+
os.add_dll_directory("C:\\ProgramData\\mingw64\\mingw64\\bin")

0 commit comments

Comments
 (0)