Skip to content

Commit

Permalink
Misc bug fixes and features, continued the refactor (#68)
Browse files Browse the repository at this point in the history
* 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
DownstreamDataTeam and Radu Marinoiu authored Mar 1, 2022
1 parent 03f420a commit ab39b05
Show file tree
Hide file tree
Showing 52 changed files with 20,401 additions and 378 deletions.
33 changes: 33 additions & 0 deletions .gitlab-ci.yml
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
Loading

0 comments on commit ab39b05

Please sign in to comment.