diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 803505f0bdf671dfff3ca889c42072aaea7e71a7..78ea3cde69ad018bd9f032f758c693b17307c232 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,32 +1,18 @@ image: python:3.7 -stages: - - test - - lint - - types - - deploy - before_script: - - pip install poetry - - poetry config virtualenvs.create false + - curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python + - export PATH="$PATH:$HOME/.poetry/bin/" + - source $HOME/.poetry/env - poetry install + - source `poetry env info --path`/bin/activate -Unit Tests: - stage: test - script: - - poetry run pytest - -Python Code Lint: - stage: lint +build: + stage: build script: - - poetry run black . + - echo 123 -Static Type check: - stage: types - script: - - poetry run mypy . - -Deploy: - stage: deploy +test: + stage: test script: - - echo "Insert deployment script here" + - echo 123