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:
parent
1a9e0dca83
commit
dfe5cf6ff6
1 changed files with 31 additions and 0 deletions
31
.gitlab-ci.yml
Normal file
31
.gitlab-ci.yml
Normal 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
|
||||
|
||||
|
Loading…
Reference in a new issue