Files
cristallina_analysis_package/.gitlab-ci.yml
2024-07-01 16:33:15 +02:00

36 lines
871 B
YAML

# requires up-to-date conda environment to run the tests as
# the gitlab runner does not have access to /sf...
build-job:
stage: build
script:
- echo "Hello, $GITLAB_USER_LOGIN!"
run_tests:
stage: test
before_script:
- echo "$CI_BUILDS_DIR"
- source /home/gitlab-runner/miniconda3/bin/activate cristallina
- echo `pwd`
- pip install -e .
script:
- echo "Starting pytest run"
- coverage run -m pytest
- coverage report
coverage: '/TOTAL.*\s+(\d+\%)/'
pages:
stage: deploy
before_script:
- echo "$CI_BUILDS_DIR"
- source /home/gitlab-runner/miniconda3/bin/activate cristallina
script:
- tox -e docs
- mv docs/_build/html/ public/
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH