diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a0d4f1c65385169feeb077c034597a75feeed9fb..ec014ac8813c5cf527fcfa4f936d995167879317 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,4 @@ -image: "python:3.8" +image: $CI_REGISTRY/mia-paris/docker-images/docker-image-quarto-jax-torch-sphinx:master stages: - linting @@ -16,10 +16,10 @@ black: build_package: stage: build before_script: - - pip install build + - pip3 install build script: - rm -rf dist/ - - python -m build + - python3 -m build artifacts: untracked: true expire_in: 1 week @@ -29,11 +29,11 @@ build_package: publish_package: stage: publish before_script: - - pip install twine + - pip3 install twine script: - TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token - python -m twine upload + python3 -m twine upload --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi dist/* tags: - docker @@ -43,9 +43,9 @@ publish_package: build_doc: stage: build before_script: - - pip install sphinx sphinx_rtd_theme + - pip3 install sphinx sphinx_rtd_theme script: - - pip install . + - pip3 install . - make -C doc html artifacts: untracked: true