1
0
Fork 0
mirror of https://github.com/Findus23/rebound-collisions.git synced 2024-09-19 15:53:48 +02:00

add Gitlab CI

This commit is contained in:
Lukas Winkler 2021-01-25 22:50:43 +01:00
parent 1a9e0dca83
commit dfe5cf6ff6
Signed by: lukas
GPG key ID: 54DE4D798D244853

31
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,31 @@
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
mypy:
script:
- mypy *.py