1
0
Fork 0
mirror of https://github.com/Findus23/rebound-collisions.git synced 2024-09-19 15:53:48 +02:00
rebound-collisions/.gitlab-ci.yml
2021-02-03 22:38:52 +01:00

49 lines
1.3 KiB
YAML

image: python:3.7
# Change pip's cache directory to be inside the project directory since we can
# only cache local items.
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
# Pip's cache doesn't store the python packages
# https://pip.pypa.io/en/stable/reference/pip_install/#caching
#
# If you want to also cache the installed packages, you have to install
# them in a virtualenv and cache it as well.
cache:
paths:
- .cache/pip
- venv/
before_script:
- python -V # Print out python version for debugging
- pip install poetry
- pip install virtualenv
- pip install mypy
- virtualenv venv
- source venv/bin/activate
- poetry install
- curl -O -u gitlabci:$COLLISION_SECRETS https://lw1.at/s/astro/collision-secrets/save.jsonl
mypy:
script:
- mypy *.py
simulation_run:
script:
- peotry run python water_sim.py test_simulationrun test
artifacts:
paths:
- "test_simulationrun*"
expire_in: 60 days
visualisation:
needs:
- simulation_run
script:
- peotry run python analyze.py test_simulationrun
- peotry run python collisionhistory.py test_simulationrun
- peotry run python collisionstats.py test_simulationrun
- peotry run python graph.py test_simulationrun
- peotry run python timeplot.py test_simulationrun