added null termination #1559
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: REBOUND (python) | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| name: Python tests on ${{ matrix.os }} (${{ matrix.python-version }}) | |
| timeout-minutes: 10 | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| python-version: ["3.9", "3.10", "3.11", "3.12"] | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pytest multiprocess matplotlib numpy | |
| - name: Build package | |
| run: pip install -e . | |
| env: | |
| FFP_CONTRACT_OFF: 1 | |
| - name: Output package contents | |
| run: | | |
| pip show rebound -vf | |
| - name: Running unittests | |
| run: | | |
| python -m unittest discover -s rebound/tests/ -v | |
| - name: Running python examples | |
| run: | | |
| python python_examples/dragforce/problem.py | |
| python python_examples/horizons/problem.py | |
| python python_examples/megno_simple/problem.py | |
| python python_examples/orbital_elements/problem.py | |
| python python_examples/outersolarsystem/problem.py | |
| python python_examples/simple_orbit/problem.py | |
| - name: Running remaining python examples | |
| # Skipping on Windows because of multiprocessing | |
| if: ${{ contains(matrix.os, 'ubuntu') }} | |
| run: | | |
| python python_examples/longtermtest/problem.py | |
| python python_examples/megno/problem.py |