2023-03-14 21:58:06 +00:00
|
|
|
image: python:3.10.9
|
|
|
|
|
2023-03-16 13:04:48 +00:00
|
|
|
stages:
|
|
|
|
- test
|
|
|
|
- lint
|
|
|
|
|
2023-04-02 09:51:21 +00:00
|
|
|
lint_json:
|
|
|
|
before_script:
|
|
|
|
- apt-get update -y
|
|
|
|
- apt-get upgrade -y
|
|
|
|
- apt-get install jq -y
|
2023-04-02 09:53:30 +00:00
|
|
|
stage: lint
|
2023-04-02 09:51:21 +00:00
|
|
|
script:
|
|
|
|
- ./scripts/lint_json.sh
|
|
|
|
|
|
|
|
shellcheck:
|
|
|
|
before_script:
|
|
|
|
- apt-get update -y
|
|
|
|
- apt-get upgrade -y
|
|
|
|
- apt-get install shellcheck -y
|
2023-04-02 09:53:30 +00:00
|
|
|
stage: lint
|
2023-04-02 09:51:21 +00:00
|
|
|
script:
|
2023-04-06 17:15:10 +00:00
|
|
|
- find . -type f -name '*.sh' -print0 | xargs -0 shellcheck -x
|
2023-04-02 09:51:21 +00:00
|
|
|
|
2023-03-16 13:04:48 +00:00
|
|
|
pytest:
|
|
|
|
stage: test
|
|
|
|
script:
|
2023-03-16 13:49:55 +00:00
|
|
|
- pip install -r requirements/dev.txt
|
2023-03-16 13:04:48 +00:00
|
|
|
- pytest .
|
|
|
|
|
2023-04-07 07:39:38 +00:00
|
|
|
test_package:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- pip install -r requirements/dev.txt
|
|
|
|
- ./scripts/test_package.sh
|
|
|
|
|
2023-03-16 13:04:48 +00:00
|
|
|
pylint:
|
|
|
|
stage: lint
|
|
|
|
script:
|
2023-03-16 13:49:55 +00:00
|
|
|
- pip install -r requirements/dev.txt
|
2023-03-16 15:43:53 +00:00
|
|
|
- pylint twnet_parser/
|
2023-03-16 13:04:48 +00:00
|
|
|
|
|
|
|
types:
|
|
|
|
stage: lint
|
2023-03-14 21:58:06 +00:00
|
|
|
script:
|
2023-03-16 13:49:55 +00:00
|
|
|
- pip install -r requirements/dev.txt
|
2023-03-16 15:43:53 +00:00
|
|
|
- mypy twnet_parser/
|
2023-03-14 21:58:06 +00:00
|
|
|
|