Skip to content
Snippets Groups Projects
Commit 99770ce3 authored by Moul's avatar Moul
Browse files

[ci] #103: Change .gitlab-ci.yml and rm make test rule

Install dev dependencies into the tests jobs to install pytest
Remove `test` rule from the Makefile
parent 3bc1ee6b
No related branches found
No related tags found
1 merge request!133#90, #103: Pytest introduction, coverage report and badge generations
...@@ -86,8 +86,8 @@ type: ...@@ -86,8 +86,8 @@ type:
stage: tests stage: tests
image: $DOCKER_IMAGE/$PYTHON_VERSION:latest image: $DOCKER_IMAGE/$PYTHON_VERSION:latest
script: script:
- poetry install --no-dev - poetry install
- make tests - poetry run pytest
tests-3.6: tests-3.6:
extends: .tests extends: .tests
......
.PHONY: docs tests check check-format mypy pylint format build deploy deploy_test .PHONY: docs check check-format mypy pylint format build deploy deploy_test
.SILENT: deploy deploy_test # do not echo commands with password .SILENT: deploy deploy_test # do not echo commands with password
# generate documentation # generate documentation
docs: docs:
cd docs && rm duniterpy.*; poetry run sphinx-apidoc -o . ../duniterpy && poetry run make clean && poetry run make html && cd .. cd docs && rm duniterpy.*; poetry run sphinx-apidoc -o . ../duniterpy && poetry run make clean && poetry run make html && cd ..
# run tests
tests:
poetry run python3 -m unittest -f ${TESTS_FILTER}
# check # check
check: mypy pylint check-format check: mypy pylint check-format
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment