Skip to content
Snippets Groups Projects
Commit df2d8ca2 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 04657793
No related branches found
No related tags found
No related merge requests found
Pipeline #6900 failed
...@@ -48,7 +48,6 @@ format: ...@@ -48,7 +48,6 @@ format:
stage: format stage: format
image: $DOCKER_IMAGE/3.8:latest image: $DOCKER_IMAGE/3.8:latest
script: script:
- pip install -r requirements_dev.txt
- make check-format - make check-format
test: test:
...@@ -56,7 +55,7 @@ test: ...@@ -56,7 +55,7 @@ test:
- .changes - .changes
stage: test stage: test
script: script:
- pip install -r requirements.txt - poetry install --no-dev
- make tests - make tests
check: check:
...@@ -64,7 +63,7 @@ check: ...@@ -64,7 +63,7 @@ check:
- .changes - .changes
stage: test stage: test
script: script:
- pip install -r requirements_dev.txt - poetry install
- make mypy - make mypy
- make pylint - make pylint
...@@ -73,8 +72,7 @@ build: ...@@ -73,8 +72,7 @@ build:
- .changes - .changes
stage: build stage: build
script: script:
- pip install -r requirements_deploy.txt - poetry build
- make build
release: release:
extends: extends:
...@@ -82,9 +80,7 @@ release: ...@@ -82,9 +80,7 @@ release:
stage: release stage: release
when: manual when: manual
script: script:
- pip install -r requirements_deploy.txt - poetry publish --build --username $PYPI_LOGIN --password $PYPI_PASSWORD
- make build
- make deploy PYPI_LOGIN=${PYPI_LOGIN} PYPI_PASSWORD=${PYPI_PASSWORD}
only: only:
- tags - tags
- master - master
...@@ -93,9 +89,10 @@ release_test: ...@@ -93,9 +89,10 @@ release_test:
stage: release stage: release
when: manual when: manual
script: script:
- pip install -r requirements_deploy.txt - mkdir -p /root/.config/pypoetry/
- make build - touch /root/.config/pypoetry/config.toml
- make deploy_test PYPI_TEST_LOGIN=${PYPI_TEST_LOGIN} PYPI_TEST_PASSWORD=${PYPI_TEST_PASSWORD} - 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: pages:
stage: publish_doc stage: publish_doc
...@@ -104,7 +101,7 @@ pages: ...@@ -104,7 +101,7 @@ pages:
- tags - tags
- master - master
script: script:
- pip install -r requirements_dev.txt - poetry install
- make docs - make docs
- mv docs/_build/html public - mv docs/_build/html public
- ls 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