Skip to content
Snippets Groups Projects
Commit 80c3e0b9 authored by Moul's avatar Moul
Browse files

[mod] #66: Update CI to install dependencies with Poetry

- Use poetry build, and poetry publish
- Folder creation which should be fixed into Poetry 1.0.0b2
parent 56c75023
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,6 @@ format:
stage: format
image: $DOCKER_IMAGE/3.8:latest
script:
- pip install -r requirements_dev.txt
- make check-format
test:
......@@ -56,7 +55,7 @@ test:
- .changes
stage: test
script:
- pip install -r requirements.txt
- poetry install --no-dev
- make tests
check:
......@@ -64,7 +63,7 @@ check:
- .changes
stage: test
script:
- pip install -r requirements_dev.txt
- poetry install
- make mypy
- make pylint
......@@ -73,8 +72,7 @@ build:
- .changes
stage: build
script:
- pip install -r requirements_deploy.txt
- make build
- poetry build
release:
extends:
......@@ -82,9 +80,7 @@ release:
stage: release
when: manual
script:
- pip install -r requirements_deploy.txt
- make build
- make deploy PYPI_LOGIN=${PYPI_LOGIN} PYPI_PASSWORD=${PYPI_PASSWORD}
- poetry publish --build --username $PYPI_LOGIN --password $PYPI_PASSWORD
only:
- tags
- master
......@@ -93,9 +89,10 @@ release_test:
stage: release
when: manual
script:
- pip install -r requirements_deploy.txt
- make build
- make deploy_test PYPI_TEST_LOGIN=${PYPI_TEST_LOGIN} PYPI_TEST_PASSWORD=${PYPI_TEST_PASSWORD}
- mkdir -p /root/.config/pypoetry/
- touch /root/.config/pypoetry/config.toml
- poetry config repositories.pypi_test https://test.pypi.org/legacy/
- poetry publish --build --username $PYPI_TEST_LOGIN --password $PYPI_TEST_PASSWORD --repository pypi_test
pages:
stage: publish_doc
......@@ -104,7 +101,7 @@ pages:
- tags
- master
script:
- pip install -r requirements_dev.txt
- poetry install
- make docs
- mv docs/_build/html public
- ls public
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment