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

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

- Use poetry build, and poetry publish
parent d907e16a
No related branches found
No related tags found
No related merge requests found
...@@ -47,7 +47,6 @@ format: ...@@ -47,7 +47,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:
...@@ -55,7 +54,7 @@ test: ...@@ -55,7 +54,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:
...@@ -63,7 +62,7 @@ check: ...@@ -63,7 +62,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
...@@ -72,8 +71,7 @@ build: ...@@ -72,8 +71,7 @@ build:
- .changes - .changes
stage: build stage: build
script: script:
- pip install -r requirements_deploy.txt - poetry build
- make build
release: release:
extends: extends:
...@@ -81,9 +79,7 @@ release: ...@@ -81,9 +79,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
...@@ -92,9 +88,8 @@ release_test: ...@@ -92,9 +88,8 @@ release_test:
stage: release stage: release
when: manual when: manual
script: script:
- pip install -r requirements_deploy.txt - poetry config repositories.pypi_test https://test.pypi.org/legacy/
- make build - poetry publish --build --username $PYPI_TEST_LOGIN --password $PYPI_TEST_PASSWORD --repository pypi_test
- make deploy_test PYPI_TEST_LOGIN=${PYPI_TEST_LOGIN} PYPI_TEST_PASSWORD=${PYPI_TEST_PASSWORD}
pages: pages:
stage: publish_doc stage: publish_doc
...@@ -103,7 +98,7 @@ pages: ...@@ -103,7 +98,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.
Please register or to comment