include: - remote: 'https://gitlab.com/swepy/cicd-templates/release-by-changelog/-/raw/0.4.5/templates/release-by-changelog.yml' - project: 'architecture-innovation-security/cicd/templates/pytest' ref: '$CI_COMMIT_REF_NAME' file: 'templates/pytest.yml' inputs: project_path: 'tests/passing_test' "failing pytest": extends: pytest variables: PROJECT_PATH: "tests/failing_test" script: - > pytest tests/failing_test > /dev/null 2>&1 || EXIT_CODE=$?; if [ $EXIT_CODE -eq 1 ]; then echo "Pytest found failing test as it should" else echo "Pytest did not find failing test as it should" exit 1 fi