diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ab730fc..cea8cbb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -15,24 +15,35 @@ pre-commit: - pre-commit run --all --show-diff-on-failure --verbose --color always pytest: + image: + name: python:$PYTHON_VERSION stage: test tags: - - shell + - cie-oow-dind-runner only: - merge_requests - "main" + services: + - name: docker:dind + alias: dind + variables: + ODOO_RPC_URL: dind + DOCKER_HOST: tcp://dind:2375/ + DOCKER_DRIVER: overlay2 + DOCKER_TLS_CERTDIR: "" coverage: '/TOTAL\s+\d+\s+\d+\s+(\d+)\%/' - script: - - python3 -m venv ./.gitlab-ci-venv - - source ./.gitlab-ci-venv/bin/activate - # - pip install --upgrade pip + before_script: - pip install poetry - - poetry --version - - poetry install -v - - echo $PATH - - echo $PYTHONPATH - - poetry run pytest --version - - poetry run pytest --verbosity=2 --exitfirst --cov odoo_openupgrade_wizard + - export PATH="$HOME/.local/bin:$PATH" + - poetry install --all-extras + script: + - poetry run pytest -vv -x --cov=odoo_openupgrade_wizard + parallel: + matrix: + - PYTHON_VERSION: + - "3.7" + - "3.8" + - "3.9" build: stage: build diff --git a/tox.ini b/tox.ini deleted file mode 100644 index 923f2ed..0000000 --- a/tox.ini +++ /dev/null @@ -1,10 +0,0 @@ -[tox] -isolated_build = true -skipsdist = True -envlist = py36, py37, py38, py39 - -[testenv] -whitelist_externals = poetry -commands = - poetry install -v - poetry run pytest -vv