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
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- ./scripts/lint_json.sh
|
|
|
|
|
|
|
|
shellcheck:
|
|
|
|
before_script:
|
|
|
|
- apt-get update -y
|
|
|
|
- apt-get upgrade -y
|
|
|
|
- apt-get install shellcheck -y
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- find . -type f -name '*.sh' -print0 | xargs -0 shellcheck
|
|
|
|
|
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 .
|
|
|
|
|
|
|
|
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
|
|
|
|