Commit 256351e3 authored by Federico Falconieri's avatar Federico Falconieri Committed by Ruben ten Hove
Browse files

refactor: moves pip install . to the script section

parent e1ecfdde
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -90,7 +90,6 @@ python:twine:
python:poetry:pip-licenses:
  before_script:
    - cd templates_tests/python
    - pip install .
  variables:
    ALLOWED: MIT License

+1 −2
Original line number Diff line number Diff line
@@ -6,8 +6,7 @@ python:flake8:
    EXTRA_ARGS: ""
  stage: test
  image: registry.gitlab.com/notno/python-tests
  before_script:
    - pip install .
  script:
    - pip install .
    - pip install flake8
    - flake8 ${DEFAULT_ARGS} ${EXTRA_ARGS} ${CHECK_PATH} && echo "[+] No problems found. Well done!"
+1 −2
Original line number Diff line number Diff line
@@ -8,9 +8,8 @@
python:mutmut:
  stage: test
  image: registry.gitlab.com/notno/python-tests
  before_script:
    - pip install .
  script:
    - pip install .
    - pip install pytest mutmut
    - mkdir project && \
      mv ${PYTHON_PACKAGE} project/ && \
+1 −2
Original line number Diff line number Diff line
@@ -7,9 +7,8 @@ python:mypy:
    EXCLUDE_REGEX: '(tests/|setup.py)'  # Keep the single quotes
    DEFAULT_SETTINGS: "--strict --ignore-missing-imports --show-error-context"
    EXTRA_SETTINGS: ""  # Use this to add your settings to the default
  before_script:
    - pip install .
  script:
    - pip install .
    - pip install mypy
    - mypy --install-types --non-interactive --junit-xml ${CI_PROJECT_DIR}/mypy-report.xml --exclude $EXCLUDE_REGEX ${DEFAULT_SETTINGS} ${EXTRA_SETTINGS} ${CHECK_PATH}
  artifacts:
+1 −2
Original line number Diff line number Diff line
@@ -7,9 +7,8 @@ python:poetry:pip-licenses:
  image: registry.gitlab.com/notno/python-tests:latest
  variables:
    ALLOWED: ""  # Empty means all. Semicolon separated list. See https://pypi.org/project/pip-licenses/#option-allow-only
  before_script:
    - pip install .
  script:
    - pip install .
    - pip install pip-licenses
    - PACKAGES=$(dasel select -f pyproject.toml "tool.poetry.dependencies" | cut -d' ' -f1 | tr '\n' ' ')
    - pip-licenses --allow-only="${ALLOWED}" --packages ${PACKAGES}
Loading