Commit 98d82885 authored by Ruben ten Hove's avatar Ruben ten Hove
Browse files

Merge branch 'rhtenhove-beta-patch-70714' into 'beta'

ci: disable mypy & pytest cache

See merge request just-ci/templates!17
parents 8252e0f6 59e75942
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -15,11 +15,8 @@ python:mypy:
    - echo "will run test on PYTHON_PACKAGE=${PYTHON_PACKAGE}"
    - pip3 install . || true  # installs package only if available
    - pip3 install mypy
    - mkdir .mypy_cache
    - mypy --install-types --non-interactive --junit-xml ${CI_PROJECT_DIR}/mypy-report.xml --exclude $MYPY_EXCLUDE_REGEX ${MYPY_DEFAULT_SETTINGS} ${MYPY_EXTRA_SETTINGS} ${CHECK_PATH}
  artifacts:
    reports:
      junit: mypy-report.xml
  cache:
    key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
    paths:
      - .mypy_cache/
+1 −5
Original line number Diff line number Diff line
@@ -19,12 +19,8 @@ python:pytest:
    - echo "will run test on PYTHON_PACKAGE=${PYTHON_PACKAGE}"
    - pip3 install . || true  # installs package only if available
    - pip3 install pytest pytest-cov ${INSTALL_PYTEST_PLUGINS}
    - python3 -m pytest --cov=${CHECK_PATH} --cov-fail-under=${PYTEST_COVERAGE_THRESHOLD} --junitxml=${CI_PROJECT_DIR}/pytest-report.xml --cov-report xml:${CI_PROJECT_DIR}/pytest-coverage.xml -o cache_dir=${CI_PROJECT_DIR}/.pytest_cache ${DEFAULT_ARGS} ${EXTRA_ARGS}
    - python3 -m pytest --cov=${CHECK_PATH} --cov-fail-under=${PYTEST_COVERAGE_THRESHOLD} --junitxml=${CI_PROJECT_DIR}/pytest-report.xml --cov-report xml:${CI_PROJECT_DIR}/pytest-coverage.xml -p no:cacheprovider ${DEFAULT_ARGS} ${EXTRA_ARGS}
  artifacts:
    reports:
      junit: pytest-report.xml
      cobertura: pytest-coverage.xml
  cache:
    key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
    paths:
      - .pytest_cache