Merge remote-tracking branch 'upstream/python' into fix/bug-35-integr… #1074
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: run tests | |
| on: | |
| push: | |
| pull_request: | |
| permissions: | |
| contents: read # to fetch code (actions/checkout) | |
| jobs: | |
| macos: | |
| runs-on: macos-26 | |
| if: ${{ github.repository == 'espressomd/espresso' }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@main | |
| - name: Setup ccache | |
| uses: hendrikmuhs/ccache-action@v1.2.23 | |
| with: | |
| key: macos | |
| save: ${{ github.ref == 'refs/heads/python' }} | |
| - name: Get runner specifications | |
| run: system_profiler SPHardwareDataType | |
| - name: Install dependencies | |
| run: | | |
| echo '' > Brewfile | |
| for dep in boost boost-mpi libomp fftw gsl ccache ninja hdf5-mpi; do echo "brew \"${dep}\"" >> Brewfile; done | |
| brew bundle check >/dev/null 2>&1 || brew bundle --verbose --no-upgrade | |
| # set up Xcode compiler | |
| echo "::group::List available Xcode compilers" | |
| ls /Applications | grep Xcode | |
| echo "::endgroup::" | |
| sudo xcode-select -switch /Applications/Xcode_26.6.0.app | |
| # Python dependencies | |
| python -m venv venv | |
| . venv/bin/activate | |
| python -m pip install -c requirements.txt cython numpy scipy packaging | |
| deactivate | |
| shell: bash | |
| - name: Build and check | |
| run: | | |
| if test -d venv; then . venv/bin/activate; fi | |
| bash maintainer/CI/build_cmake.sh | |
| env: | |
| build_procs: 3 | |
| check_procs: 3 | |
| cmake_params: '-D ESPRESSO_TEST_NP=3' | |
| myconfig: 'maxset' | |
| with_ccache: 'true' | |
| with_cuda: 'false' | |
| with_hdf5: 'true' | |
| with_fftw: 'true' | |
| with_gsl: 'true' | |
| with_walberla: 'true' | |
| with_walberla_avx: 'false' | |
| check_skip_long: 'true' | |
| test_timeout: 800 | |
| debian: | |
| runs-on: ubuntu-26.04 | |
| container: | |
| image: ghcr.io/espressomd/docker/debian:c6ad9809eed1d0e9f26f4968559b234ea3b8bf82-base-layer | |
| credentials: | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.github_token }} | |
| options: --cpus 4 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@main | |
| - name: Setup ccache | |
| uses: hendrikmuhs/ccache-action@v1.2.23 | |
| with: | |
| key: debian | |
| save: ${{ github.ref == 'refs/heads/python' || ( github.repository != 'espressomd/espresso' && ! startsWith(github.ref, 'refs/pull') ) }} | |
| - name: Setup Git environment | |
| run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
| - name: Get runner specifications | |
| run: lscpu | egrep 'Model name|Socket|Thread|NUMA|CPU\(s\)' | |
| - name: Build and check | |
| run: | | |
| if test -d venv; then . venv/bin/activate; fi | |
| bash maintainer/CI/build_cmake.sh | |
| env: | |
| build_procs: 4 | |
| check_procs: 4 | |
| CC: 'gcc-14' | |
| CXX: 'g++-14' | |
| myconfig: 'maxset' | |
| with_ccache: 'true' | |
| with_cuda: 'false' | |
| with_hdf5: 'true' | |
| with_fftw: 'true' | |
| with_gsl: 'false' | |
| with_scafacos: 'false' | |
| with_stokesian_dynamics: 'false' | |
| make_check_unit_tests: 'true' | |
| make_check_python: 'false' | |
| OMPI_ALLOW_RUN_AS_ROOT: 1 | |
| OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1 | |
| ubuntu: | |
| runs-on: ubuntu-26.04 | |
| if: ${{ github.repository == 'espressomd/espresso' }} | |
| container: | |
| image: ghcr.io/espressomd/docker/ubuntu-wo-dependencies:c6ad9809eed1d0e9f26f4968559b234ea3b8bf82-base-layer | |
| credentials: | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.github_token }} | |
| options: --cpus 4 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@main | |
| - name: Setup ccache | |
| uses: hendrikmuhs/ccache-action@v1.2.23 | |
| with: | |
| key: ubuntu | |
| save: ${{ github.ref == 'refs/heads/python' }} | |
| - name: Setup Git environment | |
| run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
| - name: Get runner specifications | |
| run: lscpu | egrep 'Model name|Socket|Thread|NUMA|CPU\(s\)' | |
| - name: Build and check | |
| run: | | |
| if test -d venv; then . venv/bin/activate; fi | |
| bash maintainer/CI/build_cmake.sh | |
| env: | |
| build_procs: 4 | |
| check_procs: 4 | |
| CC: 'gcc-16' | |
| CXX: 'g++-16' | |
| myconfig: 'maxset' | |
| with_ccache: 'true' | |
| with_cuda: 'false' | |
| with_hdf5: 'false' | |
| with_fftw: 'false' | |
| with_gsl: 'false' | |
| with_scafacos: 'false' | |
| with_stokesian_dynamics: 'false' | |
| make_check_unit_tests: 'false' | |
| make_check_python: 'false' | |
| cmake_params: '-D ESPRESSO_TEST_NT=1' | |
| OMPI_ALLOW_RUN_AS_ROOT: 1 | |
| OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1 | |
| fedora: | |
| runs-on: ubuntu-26.04 | |
| if: ${{ github.repository == 'espressomd/espresso' }} | |
| container: | |
| image: ghcr.io/espressomd/docker/fedora:c6ad9809eed1d0e9f26f4968559b234ea3b8bf82-base-layer | |
| credentials: | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.github_token }} | |
| options: --cpus 4 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@main | |
| - name: Setup ccache | |
| uses: hendrikmuhs/ccache-action@v1.2.23 | |
| with: | |
| key: fedora | |
| save: ${{ github.ref == 'refs/heads/python' || ( github.repository != 'espressomd/espresso' && ! startsWith(github.ref, 'refs/pull') ) }} | |
| - name: Setup Git environment | |
| run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
| - name: Get runner specifications | |
| run: lscpu | egrep 'Model name|Socket|Thread|NUMA|CPU\(s\)' | |
| - name: Build and check | |
| run: | | |
| if test -d venv; then . venv/bin/activate; fi | |
| bash maintainer/CI/build_cmake.sh | |
| env: | |
| build_procs: 4 | |
| check_procs: 4 | |
| CC: 'gcc' | |
| CXX: 'g++' | |
| myconfig: 'maxset' | |
| with_ccache: 'true' | |
| with_cuda: 'false' | |
| with_hdf5: 'true' | |
| with_fftw: 'true' | |
| with_fpe: 'true' | |
| with_gsl: 'true' | |
| with_scafacos: 'false' | |
| with_walberla: 'true' | |
| with_walberla_avx: 'false' | |
| with_stokesian_dynamics: 'true' | |
| check_skip_long: 'true' | |
| test_timeout: 800 | |
| cmake_params: '-D CMAKE_CXX_STANDARD=26 -D CMAKE_INCLUDE_PATH=/usr/include/mpich-x86_64 -D CMAKE_PREFIX_PATH=/usr/lib64/mpich/lib/ -D ESPRESSO_TEST_NT=1' |