From 59c244ca35211f4b80605eb78bbd3f2f63409a78 Mon Sep 17 00:00:00 2001 From: wanghui5801 Date: Sun, 17 Nov 2024 23:21:44 +1100 Subject: [PATCH] update tests.yml --- .github/workflows/tests.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ccfed28..1e1b233 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -32,15 +32,16 @@ jobs: python -m pip install setuptools wheel numpy pandas python -m pip install pytest pytest-cov - - name: Build and install package + - name: Create package structure run: | - # Create package structure mkdir -p pattern_causality/utils touch pattern_causality/__init__.py touch pattern_causality/utils/__init__.py - # Build package normally (not in editable mode) - python setup.py build_ext --inplace + - name: Build package + run: | + python setup.py build_ext + cp build/lib.*/*.so pattern_causality/utils/ python setup.py install - name: Run tests