Skip to content
Snippets Groups Projects
Commit 1c69863e authored by Andrey  ARISTOV's avatar Andrey ARISTOV
Browse files

Merge branch 'add_test_and_CI' into 'main'

Update src/zarr_tools/_tests/test_import.py,...

See merge request !1
parents 78e0808a 33ff5b00
No related branches found
No related tags found
1 merge request!1Update src/zarr_tools/_tests/test_import.py,...
Pipeline #81867 passed
# This file is a template, and might need editing before it works on your project.
# To contribute improvements to CI/CD templates, please follow the Development guide at:
# https://docs.gitlab.com/ee/development/cicd/templates.html
# This specific template is located at:
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Python.gitlab-ci.yml
# Official language image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/python/tags/
image: python:3.8
# Change pip's cache directory to be inside the project directory since we can
# only cache local items.
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
# Pip's cache doesn't store the python packages
# https://pip.pypa.io/en/stable/reference/pip_install/#caching
#
# If you want to also cache the installed packages, you have to install
# them in a virtualenv and cache it as well.
cache:
paths:
- .cache/pip
- .tox/.tox
test:
script:
- pip install tox flake8 pytest
- tox
# pages:
# script:
# - pip install sphinx sphinx-rtd-theme
# - cd doc
# - make html
# - mv build/html/ ../public/
# artifacts:
# paths:
# - public
# rules:
# - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
from zarr_tools import convert, __main__
tox.ini 0 → 100644
# content of: tox.ini , put in same dir as setup.py
[tox]
envlist = clean,py38,py39, report
requires = tox-conda
[testenv]
usedevelop=True
commands =
pytest --cov --cov-append --cov-report=term-missing
deps =
pytest
pytest-cov
depends =
{py38,py39}: clean
report: py38,py39
[testenv:report]
deps = coverage
skip_install = true
commands =
coverage report
coverage html
[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment