Skip to content

Missing directions/masses in Walk and Tamborra models #168

Missing directions/masses in Walk and Tamborra models

Missing directions/masses in Walk and Tamborra models #168

Workflow file for this run

# Workflow that installs SNOwGLoBES and runs an integration test
name: Integration Tests
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the main branch
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
types: [review_requested, ready_for_review]
jobs:
build:
runs-on: ubuntu-latest
strategy:
# Add a list of python versions we want to use for testing.
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pytest-benchmark
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Install SNEWPY
run: |
python setup.py install --user
- name: Install SNOwGLoBES
run: |
mkdir opt
cd opt
git clone https://github.com/SNOwGLoBES/snowglobes.git
cd snowglobes
export SNOWGLOBES=${PWD}
- name: Run Integration Tests
run: |
export SNOWGLOBES=${GITHUB_WORKSPACE}/opt/snowglobes
python -m unittest python/snewpy/test/simplerate_integrationtest.py
pytest -m 'snowglobes' --benchmark-json output.json
- name: Publish benchmark results
if: ${{ github.event_name == 'pull_request' }}
uses: nils-braun/pytest-benchmark-commenter@v2