Newer
Older
- pip install .[test]
# ===== TEST hydesign windows=====
test_hydesign_windows:
stage:
test
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
script:
- conda init powershell
- "if (test-path $PROFILE.CurrentUserAllHosts) { & $PROFILE.CurrentUserAllHosts}"

Mikkel Friis-Møller
committed
- conda activate hydesign113
- pip install -e . --no-deps
- pytest --cov-report term-missing:skip-covered --cov=hydesign --cov-config .coveragerc
tags:
- ANMH_old
# ===== DEPLOY hydesign docs=====
pages:
stage:
deploy
script:

Mikkel Friis-Møller
committed
- pip install --upgrade pip ipython ipykernel
- pip install pypandoc
- pip install sphinx --upgrade
- pip install nbsphinx --upgrade
- pip install nbconvert --upgrade
- pip install sphinx_rtd_theme
- ipython kernel install --name "python3" --user
- cd docs; make html
- cd ../; mv docs/build/html public/
artifacts:
paths:
- public
only:
- /^test_docdeploy.*/
# ===== DEPLOY publish hydesign on pypi=====
pypi:
stage:
deploy
only:
- tags
- test_pypi
script:
- apt-get update
- apt-get install -y pandoc
- pip install --upgrade pip
- pip install pypandoc
- python -c 'from git_utils import get_tag; get_tag(verbose=True)'
- python -m pip install -U setuptools wheel
- python setup.py sdist bdist_wheel
- python -m pip install -U twine
- python -c 'from git_utils import rename_dist_file; rename_dist_file()'
- twine upload dist/* -u $TWINE_USERNAME -p $TWINE_PASSWORD
#- twine upload --repository-url https://test.pypi.org/legacy/ dist/* -u $TWINE_USERNAME -p $TWINE_PASSWORD # for testing purposes
tags: