twnet_parser/.gitlab-ci.yml
2023-05-07 12:55:19 +02:00

49 lines
831 B
YAML

image: python:3.10.9
stages:
- test
- lint
lint_json:
before_script:
- apt-get update -y
- apt-get upgrade -y
- apt-get install jq -y
stage: lint
script:
- ./scripts/lint_json.sh
shellcheck:
before_script:
- apt-get update -y
- apt-get upgrade -y
- apt-get install shellcheck -y
stage: lint
script:
- find . -type f -name '*.sh' -print0 | xargs -0 shellcheck -x
pytest:
stage: test
script:
- pip install -r requirements/dev.txt
- pytest .
test_package_and_examples:
stage: test
script:
- pip install -r requirements/dev.txt
- ./scripts/test_package.sh
pylint:
stage: lint
script:
- pip install -r requirements/dev.txt
- pylint twnet_parser/
types:
stage: lint
script:
- pip install -r requirements/dev.txt
- mypy twnet_parser/