Skip to content
Snippets Groups Projects
Commit 721cd74f 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 2acbeb0a
No related branches found
No related tags found
No related merge requests found
......@@ -68,8 +68,8 @@ lint:
stage: tests
image: $DOCKER_IMAGE/$PYTHON_VERSION:latest
script:
- poetry install --no-dev
- make tests
- poetry install
- poetry run pytest
tests-3.6:
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
# generate documentation
docs:
cd docs && rm duniterpy.*; poetry run sphinx-apidoc -o . ../duniterpy && make clean && make html && cd ..
# run tests
tests:
poetry run python3 -m unittest ${TESTS_FILTER}
# check
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