Skip to content
Snippets Groups Projects

Remove matrix testing, lint and typecheck all cogs

1 file
+ 3
20
Compare changes
  • Side-by-side
  • Inline
+ 3
20
@@ -2,13 +2,6 @@ stages:
- dependencies
- test
.cog-parallel: &cog-parallel
parallel:
matrix:
- COG:
- quote
- sudo
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
@@ -49,25 +42,20 @@ lint:
stage: test
allow_failure: true
script:
- pylint --load-plugins=pylint_gitlab --output-format=gitlab-codeclimate:pylint.json $COG
- pylint --load-plugins=pylint_gitlab --output-format=gitlab-codeclimate:pylint.json ./**/*.py
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
changes:
- $COG/*
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
changes:
- $COG/*
artifacts:
reports:
codequality: pylint.json
when: always
<<: *cog-parallel
type_check:
stage: test
allow_failure: true
script:
- EXITCODE=0 && mypy $COG/__init__.py --no-error-summary > mypy.txt || EXITCODE=$?
- EXITCODE=0 && mypy */__init__.py --no-error-summary > mypy.txt || EXITCODE=$?
- PYTHONHASHSEED=0 mypy-gitlab-code-quality < mypy.txt > mypy.json
- exit $EXITCODE
artifacts:
@@ -75,9 +63,4 @@ type_check:
codequality: mypy.json
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
changes:
- $COG/*
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
changes:
- $COG/*
<<: *cog-parallel
\ No newline at end of file
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
\ No newline at end of file
Loading