Skip to content

Commit 94cfff4

Browse files
committed
[ci] use any python3
1 parent bd9ea4b commit 94cfff4

File tree

3 files changed

+6
-72
lines changed

3 files changed

+6
-72
lines changed

.github/workflows/ci_cmake.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ jobs:
6666
-D LIBINT2_REQUIRE_CXX_API_COMPILED=ON
6767
-D LIBINT2_ENABLE_FORTRAN=${{ matrix.do_fortran }}
6868
-D LIBINT2_ENABLE_PYTHON=ON
69-
-D Python_EXECUTABLE=${{ matrix.os == 'macos-latest' && '/usr/local/Frameworks/Python.framework/Versions/3.11/bin/python3.11' || '/usr/bin/python3.8' }}
7069
-D EXPORT_COMPRESSOR=${{ matrix.compressor }}
7170
7271
outputs:
@@ -94,10 +93,10 @@ jobs:
9493
- name: Install prerequisite MacOS packages
9594
if: ${{ steps.skip_check.outputs.should_skip != 'true' && matrix.os == 'macos-latest' }}
9695
run: |
97-
brew install ninja gcc@11 gmp boost eigen bison ccache automake python@3.11 numpy scipy
96+
brew install ninja gcc@11 gmp boost eigen bison ccache automake python@3.13 numpy scipy scikit-image pytest
9897
echo "FC=/opt/homebrew/Cellar/gcc@11/11.5.0/bin/gfortran-11" >> $GITHUB_ENV
9998
echo "EIGEN3_INCLUDE_DIR=/usr/local/include/eigen3" >> $GITHUB_ENV
100-
pip3.11 install scipy scikit-build-core build pytest
99+
pip3.13 show pytest || pip3.13 install --break-system-packages pytest
101100
102101
- name: Install prerequisite Ubuntu packages
103102
if: ${{ steps.skip_check.outputs.should_skip != 'true' && matrix.os == 'ubuntu-24.04' }}
@@ -225,9 +224,9 @@ jobs:
225224
steps:
226225
# Note we're not checking out the repo. All src from Linux tarball generated above.
227226

228-
- uses: actions/download-artifact@v3
227+
- uses: actions/download-artifact@v4.1.7
229228
with:
230-
name: Linux-g++-10
229+
name: Linux-g++
231230

232231
- name: Write a Conda Env File
233232
shell: bash -l {0}

python/setup.py.in

Lines changed: 0 additions & 66 deletions
This file was deleted.

src/lib/libint/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@ else()
207207
find_package(Python COMPONENTS Interpreter REQUIRED)
208208
add_custom_target_subproject(
209209
libint2 check-python
210-
COMMAND ${Python_EXECUTABLE} -m pytest ${PROJECT_SOURCE_DIR}/python/tests -v
210+
USES_TERMINAL
211+
COMMAND ${CMAKE_COMMAND} --build ${BINARY_DIR} --target libint2-python-test
211212
WORKING_DIRECTORY ${BINARY_DIR}/python
212213
DEPENDS
213214
"library-install"

0 commit comments

Comments
 (0)