-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathconfig.yml
More file actions
65 lines (63 loc) · 1.94 KB
/
Copy pathconfig.yml
File metadata and controls
65 lines (63 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
version: 2.1
jobs:
build:
docker:
- image: 218546966473.dkr.ecr.us-east-1.amazonaws.com/circle-ci:stitch-tap-tester-uv
steps:
- checkout
- run:
name: 'Setup virtual env'
command: |
uv venv --python 3.12 /usr/local/share/virtualenvs/tap-gitlab
source /usr/local/share/virtualenvs/tap-gitlab/bin/activate
uv pip install -U setuptools
uv pip install .
- run:
name: "JSON Validator"
command: |
source /usr/local/share/virtualenvs/tap-tester/bin/activate
stitch-validate-json tap_gitlab/schemas/*.json
- run:
name: 'Pylint'
command: |
source /usr/local/share/virtualenvs/tap-gitlab/bin/activate
uv pip install pylint
pylint tap_gitlab -d C,R,W
- run:
name: "Unit Tests"
command: |
source /usr/local/share/virtualenvs/tap-gitlab/bin/activate
uv pip install pytest coverage parameterized
coverage run -m pytest tests/unittests
coverage html
when: always
- store_test_results:
path: test_output/report.xml
- store_artifacts:
path: htmlcov
- run:
name: "Integration Tests"
command: |
source /usr/local/share/virtualenvs/tap-tester/bin/activate
uv pip install --upgrade awscli
aws s3 cp s3://com-stitchdata-dev-deployment-assets/environments/tap-tester/tap_tester_sandbox dev_env.sh
source dev_env.sh
unset USE_STITCH_BACKEND
run-test --tap=tap-gitlab tests
workflows:
version: 2
commit:
jobs:
- build:
context: circleci-user
build_daily:
triggers:
- schedule:
cron: "0 19 * * *"
filters:
branches:
only:
- master
jobs:
- build:
context: circleci-user