-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Misc bug fixes and features, continued the refactor (#68)
* release/37 changes, squashed * Moved unit tests to outside of the TapTester tests folder * Fixed some paths, included catalogs Co-authored-by: Radu Marinoiu <[email protected]>
- Loading branch information
1 parent
03f420a
commit ab39b05
Showing
52 changed files
with
20,401 additions
and
378 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
include: | ||
- template: Code-Quality.gitlab-ci.yml | ||
|
||
image: | ||
python:3.10-bullseye | ||
|
||
stages: | ||
- test | ||
|
||
workflow: | ||
rules: | ||
- if: $CI_PIPELINE_SOURCE == 'merge_request_event' | ||
|
||
unit-test-job: | ||
stage: test | ||
before_script: | ||
- python3 -m pip install --upgrade -r requirements.txt | ||
- python3 -m pip install --upgrade -r requirements_ci.txt | ||
script: | ||
- echo "Running unit tests..." | ||
- coverage run --source=tap_mambu/tap_mambu_refactor -m pytest refactor_tests | ||
- coverage json | ||
- python3 -c "import json; coverage_json = json.loads(open('coverage.json', 'r').read()); print('Coverage is', round(coverage_json['totals']['percent_covered'], 2))" | ||
|
||
lint-test-job: | ||
stage: test | ||
before_script: | ||
- python3 -m pip install --upgrade -r requirements.txt | ||
- python3 -m pip install --upgrade -r requirements_ci.txt | ||
script: | ||
- echo "Linting code..." | ||
- pylint tap_mambu/tap_mambu_refactor --exit-zero | ||
- pylint tap_mambu/tap_mambu_refactor -d C -d R -d W || true |
Oops, something went wrong.