Skip to content

PRS Pericenter Condition #903

PRS Pericenter Condition

PRS Pericenter Condition #903

Workflow file for this run

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.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-latest, windows-2019, macos-11]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install -r requirements.txt
pip install multiprocess
- name: Build package
run: pip install -e .
- 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