Commit 5465348d authored by Øyvind Evju's avatar Øyvind Evju

[ci] Add mypy to tests

parent f06e28f9
......@@ -108,6 +108,18 @@ test_cli:
after_script:
- docker rm -f -v ${PIPELINE_ID}-cli
test_mypy:
stage: test
before_script:
- apk add --update make
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker pull $IMAGE_NAME | cat
script:
- make test-mypy
after_script:
- docker rm -f -v ${PIPELINE_ID}-mypy
test_report:
stage: test
......
......@@ -382,6 +382,17 @@ test-black:
@docker rm -f $(CONTAINER_NAME)-black
test-mypy:
docker run -d \
--name $(CONTAINER_NAME)-mypy \
--user $(UID):$(GID) \
$(IMAGE_NAME) \
sleep infinity
docker exec $(CONTAINER_NAME)-mypy ops/test/run_mypy_tests.sh
@docker rm -f $(CONTAINER_NAME)-mypy
#---------------------------------------------
# LOCAL END-2-END TESTING - locally using visible host browser
# with webdriverio REPL for debugging
......
[mypy]
python_version = 3.7
ignore_missing_imports = True
#!/bin/bash
set -e # exit on first failure
mypy /ella/src/api/main.py
echo "mypy successfully completed"
......@@ -3,3 +3,4 @@ pytest-cov==2.6.0
pytest-ordering==0.6
hypothesis==3.84.5
black==18.9b0
mypy==0.650
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment