From 8330de0224fbc9c6392bdc7b700b800fcdc1d47b Mon Sep 17 00:00:00 2001 From: bastien-mva <bastien.batardiere@gmail.com> Date: Tue, 27 Jun 2023 14:04:08 +0200 Subject: [PATCH] right ci --- .gitlab-ci.yml | 58 +++++++++++++++++++++++++------------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2425e78f..c21b0e65 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,34 +4,34 @@ stages: - build - publish -# -# black: -# stage: checks -# image: registry.gitlab.com/pipeline-components/black:latest -# script: -# - black --check --verbose -- . -# tags: -# - docker -# tests: -# stage: checks -# image: "registry.forgemia.inra.fr/jbleger/docker-image-pandas-torch-sphinx:master" -# before_script: -# pip install '.[tests]' -# script: -# - pip install . -# - cd tests -# - pytest -# examples: -# stage: checks -# image: "registry.forgemia.inra.fr/jbleger/docker-image-pandas-torch-sphinx:master" -# before_script: -# pip install '.[tests]' -# script: -# - pip install . -# - cd tests -# - python create_example_files.py -# - ./test_examples.sh +black: + stage: checks + image: registry.gitlab.com/pipeline-components/black:latest + script: + - black --check --verbose -- . + tags: + - docker + +tests: + stage: checks + image: "registry.forgemia.inra.fr/jbleger/docker-image-pandas-torch-sphinx:master" + before_script: + pip install '.[tests]' + script: + - pip install . + - cd tests + - pytest +examples: + stage: checks + image: "registry.forgemia.inra.fr/jbleger/docker-image-pandas-torch-sphinx:master" + before_script: + pip install '.[tests]' + script: + - pip install . + - cd tests + - python create_example_files.py + - ./test_examples.sh @@ -59,8 +59,8 @@ publish_package: - TWINE_PASSWORD=${pypln_token} TWINE_USERNAME=__token__ python -m twine upload dist/* tags: - docker - # only: - # - tags + only: + - tags pages: stage: publish -- GitLab