Skip to content

Commit 8a6441c

Browse files
committed
ctrace!
1 parent 3562481 commit 8a6441c

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,7 @@ jobs:
9999
env:
100100
ARC_COVERAGE: 1
101101
CYTHON_TRACE: 1
102-
# Note: Cython.Coverage plugin doesn't work with Python 3.14's
103-
# sys.monitoring (SysMonitor) tracer. Cython-compiled modules
104-
# (arc/molecule/) won't show in coverage until Cython adds support.
105-
# ctrace also crashes (NumPy ImportError).
102+
COVERAGE_CORE: ctrace
106103
run: |
107104
echo "Running Unit Tests..."
108105
export PYTHONPATH="${{ github.workspace }}/AutoTST:${{ github.workspace }}/KinBot:$PYTHONPATH"
@@ -114,6 +111,7 @@ jobs:
114111
env:
115112
ARC_COVERAGE: 1
116113
CYTHON_TRACE: 1
114+
COVERAGE_CORE: ctrace
117115
run: |
118116
echo "Running Functional Tests from $(pwd)..."
119117
export PYTHONPATH="${{ github.workspace }}/AutoTST:${{ github.workspace }}/KinBot:$PYTHONPATH"

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
'linetrace': BUILD_FOR_COVERAGE,
3636
}
3737

38-
macros = [('CYTHON_TRACE', '1'), ('CYTHON_TRACE_NOGIL', '1')] if BUILD_FOR_COVERAGE else []
38+
macros = [('CYTHON_TRACE', '1'), ('CYTHON_TRACE_NOGIL', '1'),
39+
('CYTHON_USE_SYS_MONITORING', '0')] if BUILD_FOR_COVERAGE else []
3940

4041
ext_modules = [
4142
Extension('arc.molecule.atomtype', ['arc/molecule/atomtype.py'], include_dirs=['.'], define_macros=macros),

0 commit comments

Comments
 (0)